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 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.