public class TransitioningPasswordEncryptor extends Object implements PasswordEncryptor, Serializable
|Modifier and Type||Method and Description|
Checks an unencrypted password against an encrypted one to see if they match.
Encrypts a password.
Creates a password encryptor that delegates all password hash encryption to the password encryptor provided in the
public static TransitioningPasswordEncryptor newInstance(PasswordEncryptor newPasswordEncryptor, PasswordEncryptor oldPasswordEncryptor)
newPasswordEncryptorparameter. For decryption/comparison of existing passwords this password encryptor first delegates to the password encryptor provided in the
newPasswordEncryptorparameter if that attempts fails by throwing an
IllegalArgumentException, this password encryptor retries by delegating to the password encryptor provided in the
newPasswordEncryptor- the new password encryptor to use for hashing all new passwords hashes for storage
oldPasswordEncryptor- the password encryptor that was to hash the passwords already stored in the tables, in other words passwords that have not yet been updated since the transition to the
public String encryptPassword(char password)
public boolean checkPassword(char plainPassword, String encryptedPassword)
OACC is a Java Application Security Framework developed by Acciente, LLC., released under Apache License 2.0.
Copyright 2009-2017, Acciente, LLC.