Class PasswordDetails
java.lang.Object
org.apache.directory.api.ldap.model.password.PasswordDetails
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
ConstructorsConstructorDescriptionPasswordDetails(LdapSecurityConstants algorithm, byte[] salt, byte[] password) Creates a new PasswordDetails instance -
Method Summary
Modifier and TypeMethodDescriptionThe hash algorithm used to hash the password, null for plain text passwords.byte[]The hashed or plain text password.byte[]getSalt()The salt used to hash the password, null if no salt was used.
-
Constructor Details
-
PasswordDetails
Creates a new PasswordDetails instance- Parameters:
algorithm- The algorithm to usesalt- The Salt to usepassword- The password
-
-
Method Details
-
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
-