public interface PasswordCodec
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(java.lang.String type)
Can this implementation handle an encoded password of this type.
|
java.lang.String |
decode(java.lang.String encryptedPassword)
Invokes
decode(String, String) with null as the charset parameter |
java.lang.String |
decode(java.lang.String encryptedPassword,
java.lang.String charset)
Show the plain text.
|
java.lang.String |
encode(java.lang.String plainText)
Invokes
encode(String, String) with null as the charset parameter |
java.lang.String |
encode(java.lang.String plainText,
java.lang.String charset)
Obfuscate the plain text.
|
java.lang.String encode(java.lang.String plainText) throws PasswordException
encode(String, String)
with null as the charset parameterPasswordException
java.lang.String encode(java.lang.String plainText, java.lang.String charset) throws PasswordException
plainText
- the text to obfuscatecharset
- the character set that should be used to create the
resulting plain text password, if null uses UTF-8PasswordException
java.lang.String decode(java.lang.String encryptedPassword, java.lang.String charset) throws PasswordException
encryptedPassword
- the encrypted passwordcharset
- the character set that should be used to create the
resulting plain text password, if null uses UTF-8PasswordException
java.lang.String decode(java.lang.String encryptedPassword) throws PasswordException
decode(String, String)
with null as the charset parameterPasswordException
decode(String, String)
boolean canHandle(java.lang.String type)
type
- the type