|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openejb.resource.jdbc.StaticDESPasswordCipher
public class StaticDESPasswordCipher
This PasswordCipher
implementation uses a the Triple-DES encryption
algorithm.
Constructor Summary | |
---|---|
StaticDESPasswordCipher()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StaticDESPasswordCipher()
Method Detail |
---|
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(java.lang.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[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |