Liferay 6.0.5

com.liferay.portal.security.pwd
Class PwdEncryptor

java.lang.Object
  extended by com.liferay.portal.security.pwd.PwdEncryptor

public class PwdEncryptor
extends Object


Field Summary
static String PASSWORDS_ENCRYPTION_ALGORITHM
           
static char[] saltChars
           
static String TYPE_CRYPT
           
static String TYPE_MD2
           
static String TYPE_MD5
           
static String TYPE_NONE
           
static String TYPE_SHA
           
static String TYPE_SHA_256
           
static String TYPE_SHA_384
           
static String TYPE_SSHA
           
 
Constructor Summary
PwdEncryptor()
           
 
Method Summary
protected static String encodePassword(String algorithm, String clearTextPassword, byte[] saltBytes)
           
static String encrypt(String clearTextPassword)
           
static String encrypt(String clearTextPassword, String currentEncryptedPassword)
           
static String encrypt(String algorithm, String clearTextPassword, String currentEncryptedPassword)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PASSWORDS_ENCRYPTION_ALGORITHM

public static final String PASSWORDS_ENCRYPTION_ALGORITHM

TYPE_CRYPT

public static final String TYPE_CRYPT
See Also:
Constant Field Values

TYPE_MD2

public static final String TYPE_MD2
See Also:
Constant Field Values

TYPE_MD5

public static final String TYPE_MD5
See Also:
Constant Field Values

TYPE_NONE

public static final String TYPE_NONE
See Also:
Constant Field Values

TYPE_SHA

public static final String TYPE_SHA
See Also:
Constant Field Values

TYPE_SHA_256

public static final String TYPE_SHA_256
See Also:
Constant Field Values

TYPE_SHA_384

public static final String TYPE_SHA_384
See Also:
Constant Field Values

TYPE_SSHA

public static final String TYPE_SSHA
See Also:
Constant Field Values

saltChars

public static final char[] saltChars
Constructor Detail

PwdEncryptor

public PwdEncryptor()
Method Detail

encrypt

public static String encrypt(String clearTextPassword)
                      throws PwdEncryptorException
Throws:
PwdEncryptorException

encrypt

public static String encrypt(String clearTextPassword,
                             String currentEncryptedPassword)
                      throws PwdEncryptorException
Throws:
PwdEncryptorException

encrypt

public static String encrypt(String algorithm,
                             String clearTextPassword,
                             String currentEncryptedPassword)
                      throws PwdEncryptorException
Throws:
PwdEncryptorException

encodePassword

protected static String encodePassword(String algorithm,
                                       String clearTextPassword,
                                       byte[] saltBytes)
                                throws PwdEncryptorException
Throws:
PwdEncryptorException

Liferay 6.0.5