org.apache.geronimo.util
Class EncryptionManager

java.lang.Object
  extended by org.apache.geronimo.util.EncryptionManager

public class EncryptionManager
extends Object

A static class that handles storing and reading values, potentially using encryption. This can be used as the interface to any back-end encryption services.


Constructor Summary
EncryptionManager()
           
 
Method Summary
static Object decrypt(String source)
          Given a String which is the Base64-encoded encrypted data, retrieve the original Object.
static String encrypt(Serializable source)
          Gets a String which contains the Base64-encoded form of the encrypted form of the source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptionManager

public EncryptionManager()
Method Detail

encrypt

public static String encrypt(Serializable source)
Gets a String which contains the Base64-encoded form of the encrypted form of the source.


decrypt

public static Object decrypt(String source)
Given a String which is the Base64-encoded encrypted data, retrieve the original Object.



Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.