org.apache.commons.vfs.util
Interface Cryptor

All Known Implementing Classes:
DefaultCryptor

public interface Cryptor

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-2011 Apache Software Foundation. All Rights Reserved.