Enum Pbkdf2PasswordStorageSchemeCfgDefn.RehashPolicy
- java.lang.Object
-
- java.lang.Enum<Pbkdf2PasswordStorageSchemeCfgDefn.RehashPolicy>
-
- org.forgerock.opendj.server.config.meta.Pbkdf2PasswordStorageSchemeCfgDefn.RehashPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<Pbkdf2PasswordStorageSchemeCfgDefn.RehashPolicy>
- Enclosing class:
- Pbkdf2PasswordStorageSchemeCfgDefn
public static enum Pbkdf2PasswordStorageSchemeCfgDefn.RehashPolicy extends Enum<Pbkdf2PasswordStorageSchemeCfgDefn.RehashPolicy>
Defines the set of permissable values for the "rehash-policy" property.Indicates whether the server should rehash passwords after the cost has been changed.
Passwords will be rehashed when a user successfully authenticates. Note that rehashing will increase the write load on the server.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS
Rehash passwords when the cost is increased or decreased.NEVER
Never rehash passwords.ONLY_INCREASE
Only rehash passwords when the cost has been increased (do not downgrade the security of the hashed password).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static Pbkdf2PasswordStorageSchemeCfgDefn.RehashPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static Pbkdf2PasswordStorageSchemeCfgDefn.RehashPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALWAYS
public static final Pbkdf2PasswordStorageSchemeCfgDefn.RehashPolicy ALWAYS
Rehash passwords when the cost is increased or decreased.
-
NEVER
public static final Pbkdf2PasswordStorageSchemeCfgDefn.RehashPolicy NEVER
Never rehash passwords.
-
ONLY_INCREASE
public static final Pbkdf2PasswordStorageSchemeCfgDefn.RehashPolicy ONLY_INCREASE
Only rehash passwords when the cost has been increased (do not downgrade the security of the hashed password).
-
-
Method Detail
-
values
public static Pbkdf2PasswordStorageSchemeCfgDefn.RehashPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Pbkdf2PasswordStorageSchemeCfgDefn.RehashPolicy c : Pbkdf2PasswordStorageSchemeCfgDefn.RehashPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Pbkdf2PasswordStorageSchemeCfgDefn.RehashPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<Pbkdf2PasswordStorageSchemeCfgDefn.RehashPolicy>
-
-