Enum LdapSecurityConstants
- java.lang.Object
-
- java.lang.Enum<LdapSecurityConstants>
-
- org.apache.directory.api.ldap.model.constants.LdapSecurityConstants
-
- All Implemented Interfaces:
Serializable
,Comparable<LdapSecurityConstants>
public enum LdapSecurityConstants extends Enum<LdapSecurityConstants>
An enum to store all the security constants used in the server- Author:
- Apache Directory Project
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HASH_METHOD_CRYPT
The crypt encryption methodHASH_METHOD_CRYPT_BCRYPT
The BCrypt encryption methodHASH_METHOD_CRYPT_MD5
The crypt (MD5) encryption methodHASH_METHOD_CRYPT_SHA256
The crypt (SHA-256) encryption methodHASH_METHOD_CRYPT_SHA512
The crypt (SHA-512) encryption methodHASH_METHOD_MD5
The MD5 encryption methodHASH_METHOD_PKCS5S2
The PBKDF2-based encryption methodHASH_METHOD_SHA
The SHA encryption methodHASH_METHOD_SHA256
The SHA-256 encryption methodHASH_METHOD_SHA384
The SHA-384 encryption methodHASH_METHOD_SHA512
The SHA-512 encryption methodHASH_METHOD_SMD5
The Salter MD5 encryption methodHASH_METHOD_SSHA
The Salted SHA encryption methodHASH_METHOD_SSHA256
The salted SHA-256 encryption methodHASH_METHOD_SSHA384
The salted SHA-384 encryption methodHASH_METHOD_SSHA512
The salted SHA-512 encryption method
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlgorithm()
static LdapSecurityConstants
getAlgorithm(String algorithm)
Get the associated constant from a stringString
getName()
String
getPrefix()
String
getSubPrefix()
static LdapSecurityConstants
valueOf(String name)
Returns the enum constant of this type with the specified name.static LdapSecurityConstants[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HASH_METHOD_SHA
public static final LdapSecurityConstants HASH_METHOD_SHA
The SHA encryption method
-
HASH_METHOD_SSHA
public static final LdapSecurityConstants HASH_METHOD_SSHA
The Salted SHA encryption method
-
HASH_METHOD_SHA256
public static final LdapSecurityConstants HASH_METHOD_SHA256
The SHA-256 encryption method
-
HASH_METHOD_SSHA256
public static final LdapSecurityConstants HASH_METHOD_SSHA256
The salted SHA-256 encryption method
-
HASH_METHOD_SHA384
public static final LdapSecurityConstants HASH_METHOD_SHA384
The SHA-384 encryption method
-
HASH_METHOD_SSHA384
public static final LdapSecurityConstants HASH_METHOD_SSHA384
The salted SHA-384 encryption method
-
HASH_METHOD_SHA512
public static final LdapSecurityConstants HASH_METHOD_SHA512
The SHA-512 encryption method
-
HASH_METHOD_SSHA512
public static final LdapSecurityConstants HASH_METHOD_SSHA512
The salted SHA-512 encryption method
-
HASH_METHOD_MD5
public static final LdapSecurityConstants HASH_METHOD_MD5
The MD5 encryption method
-
HASH_METHOD_SMD5
public static final LdapSecurityConstants HASH_METHOD_SMD5
The Salter MD5 encryption method
-
HASH_METHOD_CRYPT
public static final LdapSecurityConstants HASH_METHOD_CRYPT
The crypt encryption method
-
HASH_METHOD_CRYPT_MD5
public static final LdapSecurityConstants HASH_METHOD_CRYPT_MD5
The crypt (MD5) encryption method
-
HASH_METHOD_CRYPT_SHA256
public static final LdapSecurityConstants HASH_METHOD_CRYPT_SHA256
The crypt (SHA-256) encryption method
-
HASH_METHOD_CRYPT_SHA512
public static final LdapSecurityConstants HASH_METHOD_CRYPT_SHA512
The crypt (SHA-512) encryption method
-
HASH_METHOD_CRYPT_BCRYPT
public static final LdapSecurityConstants HASH_METHOD_CRYPT_BCRYPT
The BCrypt encryption method
-
HASH_METHOD_PKCS5S2
public static final LdapSecurityConstants HASH_METHOD_PKCS5S2
The PBKDF2-based encryption method
-
-
Method Detail
-
values
public static LdapSecurityConstants[] 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 (LdapSecurityConstants c : LdapSecurityConstants.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LdapSecurityConstants 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
-
getAlgorithm
public String getAlgorithm()
- Returns:
- the prefix associated with the constant.
-
getSubPrefix
public String getSubPrefix()
- Returns:
- the optional sub-prefix associated with the constant.
-
getAlgorithm
public static LdapSecurityConstants getAlgorithm(String algorithm)
Get the associated constant from a string- Parameters:
algorithm
- The algorithm's name- Returns:
- The associated constant
-
-