public final class CdiPasswordCipher extends java.lang.Object implements PasswordCipher
Constructor and Description |
---|
CdiPasswordCipher() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
decrypt(char[] encryptedPassword)
Decodes an encoded password and returns a plain text password.
|
char[] |
encrypt(java.lang.String plainPassword)
Encodes a given plain text password and returns the encoded password.
|
public char[] encrypt(java.lang.String plainPassword)
PasswordCipher
encrypt
in interface PasswordCipher
plainPassword
- The password to encode. May not be null
, nor empty.public java.lang.String decrypt(char[] encryptedPassword)
PasswordCipher
decrypt
in interface PasswordCipher
encryptedPassword
- The ciphered password to decode. May not be null
,
nor empty.