org.apache.geronimo.system.util
Class ConfiguredEncryption
java.lang.Object
org.apache.geronimo.system.util.ConfiguredEncryption
- All Implemented Interfaces:
- org.apache.geronimo.gbean.GBeanLifecycle
public class ConfiguredEncryption
- extends Object
- implements org.apache.geronimo.gbean.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: 1459106 $ $Date: 2013-03-21 08:34:48 +0800 (Thu, 21 Mar 2013) $
|
Field Summary |
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GBEAN_INFO
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
ConfiguredEncryption
public ConfiguredEncryption(String path,
ServerInfo serverInfo)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
doStart
public void doStart()
throws Exception
- Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle
- Throws:
Exception
doStop
public void doStop()
throws Exception
- Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle
- Throws:
Exception
doFail
public void doFail()
- Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle
getGBeanInfo
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
Copyright © 2003-2013 The Apache Geronimo development community. All Rights Reserved.