public class ClearTextPasswordEncryptor extends Object implements PasswordEncryptor
| Constructor and Description |
|---|
ClearTextPasswordEncryptor() |
| Modifier and Type | Method and Description |
|---|---|
String |
encrypt(String password)
Returns the clear text password
|
boolean |
matches(String passwordToCheck,
String storedPassword)
Matches an encrypted password with that stored
|
public String encrypt(String password)
encrypt in interface PasswordEncryptorpassword - The clear text passwordpublic boolean matches(String passwordToCheck, String storedPassword)
matches in interface PasswordEncryptorpasswordToCheck - The encrypted password to checkstoredPassword - The stored passwordCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.