public class PasswordDetails extends Object
| Modifier and Type | Field and Description |
|---|---|
private LdapSecurityConstants |
algorithm |
private byte[] |
password |
private byte[] |
salt |
| Constructor and Description |
|---|
PasswordDetails(LdapSecurityConstants algorithm,
byte[] salt,
byte[] password)
Creates a new PasswordDetails instance
|
| Modifier and Type | Method and Description |
|---|---|
LdapSecurityConstants |
getAlgorithm()
The hash algorithm used to hash the password, null for plain text passwords.
|
byte[] |
getPassword()
The hashed or plain text password.
|
byte[] |
getSalt()
The salt used to hash the password, null if no salt was used.
|
private final LdapSecurityConstants algorithm
private final byte[] salt
private final byte[] password
public PasswordDetails(LdapSecurityConstants algorithm, byte[] salt, byte[] password)
algorithm - The algorithm to usesalt - The Salt to usepassword - The passwordpublic LdapSecurityConstants getAlgorithm()
public byte[] getSalt()
public byte[] getPassword()
Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.