|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PasswordCipher
Implementations of PasswordCipher
allow to encode and decode passwords
used to connect to a database.
encrypt(String)
method is not
mandatory as we don't need to encode a password, but it's useful to get the
encrypted value for a given plain text password. In the case you have
implemented both methods, you can use the PasswordCodec command line tool to
encode/decode a password.
Method Summary | |
---|---|
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. |
Method Detail |
---|
char[] encrypt(java.lang.String plainPassword)
plainPassword
- The password to encode. May not be null
, nor empty.
java.lang.String decrypt(char[] encryptedPassword)
encryptedPassword
- The ciphered password to decode. May not be null
,
nor empty.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |