org.apache.directory.api.ldap.model.password
Class EncryptionMethod
java.lang.Object
org.apache.directory.api.ldap.model.password.EncryptionMethod
public class EncryptionMethod
- extends Object
A class to store all informations about the existing
password found in the cache or get from the backend.
This is necessary as we have to compute :
- the used algorithm
- the salt if any
- the password itself.
If we have a on-way encrypted password, it is stored using this
format :
{}
where the encrypted password format can be :
- MD5/SHA : base64()
- SMD5/SSH : base64()
- crypt :
Algorithm are currently MD5, SMD5, SHA, SSHA, SHA2, SSHA-2 (except SHA-224), CRYPT and empty
- Author:
- Apache Directory Project
EncryptionMethod
public EncryptionMethod(LdapSecurityConstants algorithm,
byte[] salt)
getAlgorithm
public LdapSecurityConstants getAlgorithm()
getSalt
public byte[] getSalt()
setSalt
public void setSalt(byte[] salt)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.