Class PasswordDetails
- java.lang.Object
-
- org.apache.directory.api.ldap.model.password.PasswordDetails
-
public class PasswordDetails extends Object
A class to store all informations about an password. This includes: - the used algorithm - the salt if any - the password itself.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description PasswordDetails(LdapSecurityConstants algorithm, byte[] salt, byte[] password)
Creates a new PasswordDetails instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
PasswordDetails
public PasswordDetails(LdapSecurityConstants algorithm, byte[] salt, byte[] password)
Creates a new PasswordDetails instance- Parameters:
algorithm
- The algorithm to usesalt
- The Salt to usepassword
- The password
-
-
Method Detail
-
getAlgorithm
public LdapSecurityConstants getAlgorithm()
The hash algorithm used to hash the password, null for plain text passwords.- Returns:
- the hash algorithm used to hash the password, null for plain text passwords
-
getSalt
public byte[] getSalt()
The salt used to hash the password, null if no salt was used.- Returns:
- the salt used to hash the password, null if no salt was used
-
getPassword
public byte[] getPassword()
The hashed or plain text password.- Returns:
- the hashed or plain text password
-
-