org.apache.commons.vfs2.util
Interface Cryptor

All Known Implementing Classes:
DefaultCryptor

public interface Cryptor

Since:
2.0
Author:
Commons VFS team

Method Summary
 String decrypt(String encryptedKey)
          Decrypts the password.
 String encrypt(String plainKey)
          Encrypt the plain text password.
 

Method Detail

encrypt

String encrypt(String plainKey)
               throws Exception
Encrypt the plain text password.

Parameters:
plainKey - The password.
Returns:
The encrypted password String.
Throws:
Exception - If an error occurs.

decrypt

String decrypt(String encryptedKey)
               throws Exception
Decrypts the password.

Parameters:
encryptedKey - the encrypted password.
Returns:
The plain text password.
Throws:
Exception - If an error occurs.


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.