public class SaltedPasswordEncryptor extends Object implements PasswordEncryptor
Constructor and Description |
---|
SaltedPasswordEncryptor() |
Modifier and Type | Method and Description |
---|---|
String |
encrypt(String password)
Encrypts the password using a salt concatenated with the password
and a series of MD5 steps.
|
boolean |
matches(String passwordToCheck,
String storedPassword)
Matches an encrypted password with that stored
|
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–2016 The Apache Software Foundation. All rights reserved.