org.apache.directory.api.ldap.model.password
Class EncryptionMethod

java.lang.Object
  extended by 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

Constructor Summary
EncryptionMethod(LdapSecurityConstants algorithm, byte[] salt)
           
 
Method Summary
 LdapSecurityConstants getAlgorithm()
           
 byte[] getSalt()
           
 void setSalt(byte[] salt)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EncryptionMethod

public EncryptionMethod(LdapSecurityConstants algorithm,
                        byte[] salt)
Method Detail

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.