Enum BcryptPasswordStorageSchemeCfgDefn.RehashPolicy
- java.lang.Object
-
- java.lang.Enum<BcryptPasswordStorageSchemeCfgDefn.RehashPolicy>
-
- org.forgerock.opendj.server.config.meta.BcryptPasswordStorageSchemeCfgDefn.RehashPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<BcryptPasswordStorageSchemeCfgDefn.RehashPolicy>
- Enclosing class:
- BcryptPasswordStorageSchemeCfgDefn
public static enum BcryptPasswordStorageSchemeCfgDefn.RehashPolicy extends Enum<BcryptPasswordStorageSchemeCfgDefn.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 BcryptPasswordStorageSchemeCfgDefn.RehashPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static BcryptPasswordStorageSchemeCfgDefn.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 BcryptPasswordStorageSchemeCfgDefn.RehashPolicy ALWAYS
Rehash passwords when the cost is increased or decreased.
-
NEVER
public static final BcryptPasswordStorageSchemeCfgDefn.RehashPolicy NEVER
Never rehash passwords.
-
ONLY_INCREASE
public static final BcryptPasswordStorageSchemeCfgDefn.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 BcryptPasswordStorageSchemeCfgDefn.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 (BcryptPasswordStorageSchemeCfgDefn.RehashPolicy c : BcryptPasswordStorageSchemeCfgDefn.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 BcryptPasswordStorageSchemeCfgDefn.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<BcryptPasswordStorageSchemeCfgDefn.RehashPolicy>
-
-