org.apache.geronimo.crypto
Interface Encryption

All Known Implementing Classes:
AbstractEncryption, ConfiguredEncryption, SimpleEncryption

public interface Encryption

Interface for objects to register with EncryptionManager.


Method Summary
 Serializable decrypt(String source)
          decrypt the source according to some scheme and return the original object.
 String encrypt(Serializable source)
          encrypt the source according to some scheme and return the result as a String.
 

Method Detail

encrypt

String encrypt(Serializable source)
encrypt the source according to some scheme and return the result as a String.

Parameters:
source - object to encrypt
Returns:
encrypted object representing the source.

decrypt

Serializable decrypt(String source)
decrypt the source according to some scheme and return the original object.

Parameters:
source - the string representing the encrypted object
Returns:
(a copy of) the original object.


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.