Enum Argon2PasswordStorageSchemeCfgDefn.Argon2Variant
- java.lang.Object
-
- java.lang.Enum<Argon2PasswordStorageSchemeCfgDefn.Argon2Variant>
-
- org.forgerock.opendj.server.config.meta.Argon2PasswordStorageSchemeCfgDefn.Argon2Variant
-
- All Implemented Interfaces:
Serializable,Comparable<Argon2PasswordStorageSchemeCfgDefn.Argon2Variant>
- Enclosing class:
- Argon2PasswordStorageSchemeCfgDefn
public static enum Argon2PasswordStorageSchemeCfgDefn.Argon2Variant extends Enum<Argon2PasswordStorageSchemeCfgDefn.Argon2Variant>
Defines the set of permissible values for the "argon2-variant" property.The variant of Argon2 algorithm to use (between I, D and ID).
Argon2D maximizes resistance to GPU cracking attacks. Argon2I is optimized to resist side-channel attacks. Argon2ID is a hybrid version that combines both approaches and has stronger resistance to attacks, but it's more expensive. By default, changes to this setting impact only newly created and updated passwords. However, if the rehash-policy is set to always or only-increase, it causes the server to recalculate each user's password hash on their next authentication, and writes the new hash to the user's entry on disk. Changing the variant of Argon2 algorithm to use therefore leads to a short-term spike in CPU and disk use as the server updates each user's password when they next authenticate. Longer term, increasing this setting results in more secure passwords at the expense of much higher CPU consumption and lower throughput.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static Argon2PasswordStorageSchemeCfgDefn.Argon2VariantvalueOf(String name)Returns the enum constant of this type with the specified name.static Argon2PasswordStorageSchemeCfgDefn.Argon2Variant[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
D
public static final Argon2PasswordStorageSchemeCfgDefn.Argon2Variant D
Use Argon2d variant.
-
I
public static final Argon2PasswordStorageSchemeCfgDefn.Argon2Variant I
Argon2i.
-
ID
public static final Argon2PasswordStorageSchemeCfgDefn.Argon2Variant ID
Argon2id.
-
-
Method Detail
-
values
public static Argon2PasswordStorageSchemeCfgDefn.Argon2Variant[] 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 (Argon2PasswordStorageSchemeCfgDefn.Argon2Variant c : Argon2PasswordStorageSchemeCfgDefn.Argon2Variant.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Argon2PasswordStorageSchemeCfgDefn.Argon2Variant 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:
toStringin classEnum<Argon2PasswordStorageSchemeCfgDefn.Argon2Variant>
-
-