| Package | Description |
|---|---|
| org.apache.directory.api.ldap.model.constants | |
| org.apache.directory.api.ldap.model.password |
| Modifier and Type | Method and Description |
|---|---|
static LdapSecurityConstants |
LdapSecurityConstants.getAlgorithm(String algorithm)
Get the associated constant from a string
|
static LdapSecurityConstants |
LdapSecurityConstants.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.
|
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
LdapSecurityConstants.matches(String algorithm,
LdapSecurityConstants constant) |
| Modifier and Type | Field and Description |
|---|---|
private LdapSecurityConstants |
PasswordDetails.algorithm |
| Modifier and Type | Method and Description |
|---|---|
static LdapSecurityConstants |
PasswordUtil.findAlgorithm(byte[] credentials)
Get the algorithm from the stored password.
|
LdapSecurityConstants |
PasswordDetails.getAlgorithm()
The hash algorithm used to hash the password, null for plain text passwords.
|
| Modifier and Type | Method and 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 salt
|
private 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 PasswordDetails |
PasswordUtil.getCredentials(byte[] credentials,
int algoLength,
int hashLen,
LdapSecurityConstants algorithm)
Compute the credentials
|
private static PasswordDetails |
PasswordUtil.getCryptCredentials(byte[] credentials,
int algoLength,
LdapSecurityConstants algorithm) |
private static PasswordDetails |
PasswordUtil.getPbkdf2Credentials(byte[] credentials,
int algoLength,
LdapSecurityConstants algorithm)
Gets the credentials from a PKCS5S2 hash.
|
| Constructor and Description |
|---|
PasswordDetails(LdapSecurityConstants algorithm,
byte[] salt,
byte[] password)
Creates a new PasswordDetails instance
|
Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.