public class PlainTextPasswordCipher extends java.lang.Object implements PasswordCipher
PlainTextPasswordCipher
is an PasswordCipher
implementation that does not use any encryption/decryption algorithm at all.Constructor and Description |
---|
PlainTextPasswordCipher() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
decrypt(char[] encryptedPassword)
Returns the
encryptedPassword as plain text string. |
char[] |
encrypt(java.lang.String plainPassword)
Returns the
plainPassword as plain text character array. |
public java.lang.String decrypt(char[] encryptedPassword)
encryptedPassword
as plain text string.decrypt
in interface PasswordCipher
encryptedPassword
- the encoded passwordPasswordCipher.decrypt(char[])
public char[] encrypt(java.lang.String plainPassword)
plainPassword
as plain text character array.encrypt
in interface PasswordCipher
plainPassword
- the plain-text passwordPasswordCipher.encrypt(String)