Uses of Class
org.apache.directory.api.ldap.model.constants.LdapSecurityConstants
-
Packages that use LdapSecurityConstants Package Description org.apache.directory.api.ldap.model.constants org.apache.directory.api.ldap.model.password -
-
Uses of LdapSecurityConstants in org.apache.directory.api.ldap.model.constants
Methods in org.apache.directory.api.ldap.model.constants that return LdapSecurityConstants Modifier and Type Method Description static LdapSecurityConstantsLdapSecurityConstants. getAlgorithm(String algorithm)Get the associated constant from a stringstatic LdapSecurityConstantsLdapSecurityConstants. valueOf(String name)Returns the enum constant of this type with the specified name.static LdapSecurityConstants[]LdapSecurityConstants. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.apache.directory.api.ldap.model.constants with parameters of type LdapSecurityConstants Modifier and Type Method Description private static booleanLdapSecurityConstants. matches(String algorithm, LdapSecurityConstants constant) -
Uses of LdapSecurityConstants in org.apache.directory.api.ldap.model.password
Fields in org.apache.directory.api.ldap.model.password declared as LdapSecurityConstants Modifier and Type Field Description private LdapSecurityConstantsPasswordDetails. algorithmMethods in org.apache.directory.api.ldap.model.password that return LdapSecurityConstants Modifier and Type Method Description static LdapSecurityConstantsPasswordUtil. findAlgorithm(byte[] credentials)Get the algorithm from the stored password.LdapSecurityConstantsPasswordDetails. getAlgorithm()The hash algorithm used to hash the password, null for plain text passwords.Methods in org.apache.directory.api.ldap.model.password with parameters of type LdapSecurityConstants Modifier and Type Method Description static byte[]PasswordUtil. createStoragePassword(byte[] credentials, LdapSecurityConstants algorithm)create a hashed password in a format that can be stored in the server.static byte[]PasswordUtil. createStoragePassword(String credentials, LdapSecurityConstants algorithm)private static byte[]PasswordUtil. digest(LdapSecurityConstants algorithm, byte[] password, byte[] salt)Compute the hashed password given an algorithm, the credentials and an optional salt.private static byte[]PasswordUtil. encryptPassword(byte[] credentials, LdapSecurityConstants algorithm, byte[] salt)encrypts the given credentials based on the algorithm name and optional saltprivate static byte[]PasswordUtil. generatePbkdf2Hash(byte[] credentials, LdapSecurityConstants algorithm, byte[] salt)generates a hash based on the PKCS5S2 spec Note: this has been implemented to generate hashes compatible with what JIRA generates.private static PasswordDetailsPasswordUtil. getCredentials(byte[] credentials, int algoLength, int hashLen, LdapSecurityConstants algorithm)Compute the credentialsprivate static PasswordDetailsPasswordUtil. getCryptCredentials(byte[] credentials, int algoLength, LdapSecurityConstants algorithm)private static PasswordDetailsPasswordUtil. getPbkdf2Credentials(byte[] credentials, int algoLength, LdapSecurityConstants algorithm)Gets the credentials from a PKCS5S2 hash.Constructors in org.apache.directory.api.ldap.model.password with parameters of type LdapSecurityConstants Constructor Description PasswordDetails(LdapSecurityConstants algorithm, byte[] salt, byte[] password)Creates a new PasswordDetails instance
-