org.apache.geronimo.system.util
Class ConfiguredEncryption

java.lang.Object
  extended by org.apache.geronimo.system.util.ConfiguredEncryption
All Implemented Interfaces:
GBeanLifecycle

public class ConfiguredEncryption
extends java.lang.Object
implements GBeanLifecycle

Like SimpleEncryption except it uses a stored secret key. If the key file is missing, it makes up a new one. WARNING: NOT RECOMMENDED. If you lose the secret key file your encrypted passwords will be unavailable. Instead, secure your operationg environment and use something like ldap or a database to store passwords in. To use, include something like this in the rmi-naming module of var/config/config.xml: var/security/ConfiguredSecretKey.ser ServerInfo

Version:
$Rev: 1334031 $ $Date: 2012-05-04 23:23:16 +0800 (Fri, 04 May 2012) $

Field Summary
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
ConfiguredEncryption(java.lang.String path, ServerInfo serverInfo)
           
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
static GBeanInfo getGBeanInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

ConfiguredEncryption

public ConfiguredEncryption(java.lang.String path,
                            ServerInfo serverInfo)
                     throws java.io.IOException,
                            java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException
Method Detail

doStart

public void doStart()
             throws java.lang.Exception
Specified by:
doStart in interface GBeanLifecycle
Throws:
java.lang.Exception

doStop

public void doStop()
            throws java.lang.Exception
Specified by:
doStop in interface GBeanLifecycle
Throws:
java.lang.Exception

doFail

public void doFail()
Specified by:
doFail in interface GBeanLifecycle

getGBeanInfo

public static GBeanInfo getGBeanInfo()


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