public class SaltedPasswordEncryptor extends Object implements PasswordEncryptor
Constructor and Description |
---|
SaltedPasswordEncryptor() |
public String encrypt(String password)
encrypt
in interface PasswordEncryptor
password
- The clear text passwordpublic boolean matches(String passwordToCheck, String storedPassword)
matches
in interface PasswordEncryptor
passwordToCheck
- The encrypted password to checkstoredPassword
- The stored passwordCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.