public class StaticDESPasswordCipher extends java.lang.Object implements PasswordCipher
PasswordCipher
implementation uses a the Triple-DES encryption
algorithm.Constructor and Description |
---|
StaticDESPasswordCipher() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
decrypt(char[] encodedPassword)
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.java.lang.RuntimeException
- in any case of error.PasswordCipher.encrypt(String)
public java.lang.String decrypt(char[] encodedPassword)
PasswordCipher
decrypt
in interface PasswordCipher
encodedPassword
- The ciphered password to decode. May not be null
,
nor empty.java.lang.RuntimeException
- in any case of error.PasswordCipher.decrypt(char[])