Liferay 6.2-ce-ga5

com.liferay.portal.security.pwd
Class PasswordEncryptorUtil

java.lang.Object
  extended by com.liferay.portal.security.pwd.PasswordEncryptorUtil
Direct Known Subclasses:
PwdEncryptor

public class PasswordEncryptorUtil
extends Object


Field Summary
static String PASSWORDS_ENCRYPTION_ALGORITHM
           
static String TYPE_BCRYPT
           
static String TYPE_CRYPT
          Deprecated. As of 6.1.0, replaced by TYPE_UFC_CRYPT
static String TYPE_MD2
           
static String TYPE_MD5
           
static String TYPE_NONE
           
static String TYPE_PBKDF2
           
static String TYPE_SHA
           
static String TYPE_SHA_256
           
static String TYPE_SHA_384
           
static String TYPE_SSHA
           
static String TYPE_UFC_CRYPT
           
 
Constructor Summary
PasswordEncryptorUtil()
           
 
Method Summary
static String encrypt(String plainTextPassword)
           
static String encrypt(String plainTextPassword, String encryptedPassword)
           
static String encrypt(String algorithm, String plainTextPassword, String encryptedPassword)
           
 PasswordEncryptor getPasswordEncryptor()
           
 void setPasswordEncryptor(PasswordEncryptor passwordEncryptor)
           
 
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_BCRYPT

public static final String TYPE_BCRYPT
See Also:
Constant Field Values

TYPE_CRYPT

public static final String TYPE_CRYPT
Deprecated. As of 6.1.0, replaced by TYPE_UFC_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_PBKDF2

public static final String TYPE_PBKDF2
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

TYPE_UFC_CRYPT

public static final String TYPE_UFC_CRYPT
See Also:
Constant Field Values
Constructor Detail

PasswordEncryptorUtil

public PasswordEncryptorUtil()
Method Detail

encrypt

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

encrypt

public static String encrypt(String plainTextPassword,
                             String encryptedPassword)
                      throws PwdEncryptorException
Throws:
PwdEncryptorException

encrypt

public static String encrypt(String algorithm,
                             String plainTextPassword,
                             String encryptedPassword)
                      throws PwdEncryptorException
Throws:
PwdEncryptorException

getPasswordEncryptor

public PasswordEncryptor getPasswordEncryptor()

setPasswordEncryptor

public void setPasswordEncryptor(PasswordEncryptor passwordEncryptor)

Liferay 6.2-ce-ga5