|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.vfs2.util.DefaultCryptor
public class DefaultCryptor
Allows passwords to be encrypted and decrypted.
Constructor Summary | |
---|---|
DefaultCryptor()
|
Method Summary | |
---|---|
java.lang.String |
decrypt(java.lang.String encryptedKey)
Decrypts the password. |
java.lang.String |
encrypt(java.lang.String plainKey)
Encrypt the plain text password. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCryptor()
Method Detail |
---|
public java.lang.String encrypt(java.lang.String plainKey) throws java.lang.Exception
encrypt
in interface Cryptor
plainKey
- The password.
java.lang.Exception
- If an error occurs.public java.lang.String decrypt(java.lang.String encryptedKey) throws java.lang.Exception
decrypt
in interface Cryptor
encryptedKey
- the encrypted password.
java.lang.Exception
- If an error occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |