Enum CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm
- java.lang.Object
-
- java.lang.Enum<CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm>
-
- org.forgerock.opendj.server.config.meta.CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm
-
- All Implemented Interfaces:
Serializable
,Comparable<CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm>
- Enclosing class:
- CryptPasswordStorageSchemeCfgDefn
public static enum CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm extends Enum<CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm>
Defines the set of permissible values for the "crypt-password-storage-encryption-algorithm" property.Specifies the algorithm to use to encrypt new passwords.
Select the crypt algorithm to use to encrypt new passwords. The value can either be "unix", which means the password is encrypted with the weak Unix crypt algorithm, or "md5" which means the password is encrypted with the BSD MD5 algorithm and has a $1$ prefix, or "sha256" which means the password is encrypted with the SHA256 algorithm and has a $5$ prefix, or "sha512" which means the password is encrypted with the SHA512 algorithm and has a $6$ prefix.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MD5
New passwords are encrypted with the BSD MD5 algorithm.SHA256
New passwords are encrypted with the Unix crypt SHA256 algorithm.SHA512
New passwords are encrypted with the Unix crypt SHA512 algorithm.UNIX
New passwords are encrypted with the Unix crypt algorithm.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm
valueOf(String name)
Returns the enum constant of this type with the specified name.static CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MD5
public static final CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm MD5
New passwords are encrypted with the BSD MD5 algorithm.
-
SHA256
public static final CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm SHA256
New passwords are encrypted with the Unix crypt SHA256 algorithm.
-
SHA512
public static final CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm SHA512
New passwords are encrypted with the Unix crypt SHA512 algorithm.
-
UNIX
public static final CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm UNIX
New passwords are encrypted with the Unix crypt algorithm. Passwords are truncated at 8 characters and the top bit of each character is ignored.
-
-
Method Detail
-
values
public static CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm[] 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 (CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm c : CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm 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<CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm>
-
-