org.jpos.q2.security
Class KeyStoreAdaptor

java.lang.Object
  extended by org.jpos.q2.QBeanSupport
      extended by org.jpos.q2.security.KeyStoreAdaptor
All Implemented Interfaces:
Configurable, QBean, QBeanSupportMBean, QPersist, KeyStoreAdaptorMBean

public class KeyStoreAdaptor
extends QBeanSupport
implements KeyStoreAdaptorMBean

KeyStoreAdaptor Sample Configuration

 <key-store class="org.jpos.q2.security.KeyStoreAdaptor" logger="Q2">
  <attr name="impl">org.jpos.security.SimpleKeyFile</attr>
  <property name="key-file" value="deploy/keys" />
 </key-store>
 

Version:
$Revision$ $Date$
Author:
Hani Kirollos, Alejandro Revilla

Field Summary
static String DEFAULT_IMPL
           
 
Fields inherited from class org.jpos.q2.QBeanSupport
cfg, log
 
Fields inherited from interface org.jpos.q2.QBean
DESTROYED, FAILED, STARTED, STARTING, stateString, STOPPED, STOPPING
 
Constructor Summary
KeyStoreAdaptor()
           
 
Method Summary
 String getImpl()
           
protected  void initService()
           
 void setImpl(String clazz)
           
protected  void startService()
           
protected  void stopService()
           
 
Methods inherited from class org.jpos.q2.QBeanSupport
addAttr, createElement, destroy, destroyService, getAttrs, getAttrs, getConfiguration, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getProperties, getProperty, getRealm, getServer, getState, getStateAsString, init, isModified, running, setAttr, setConfiguration, setLogger, setModified, setName, setPersist, setProperty, setRealm, setServer, setState, shutdownQ2, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jpos.q2.QBeanSupportMBean
getLoader, getLoaderURLS, getLogger, getName, getRealm, getServer, setLogger, setName, setPersist, setRealm, setServer, shutdownQ2
 
Methods inherited from interface org.jpos.q2.QBean
destroy, getState, getStateAsString, init, start, stop
 
Methods inherited from interface org.jpos.q2.QPersist
getPersist, isModified
 

Field Detail

DEFAULT_IMPL

public static final String DEFAULT_IMPL
See Also:
Constant Field Values
Constructor Detail

KeyStoreAdaptor

public KeyStoreAdaptor()
Method Detail

initService

protected void initService()
                    throws Exception
Overrides:
initService in class QBeanSupport
Throws:
Exception

setImpl

public void setImpl(String clazz)
Specified by:
setImpl in interface KeyStoreAdaptorMBean

getImpl

public String getImpl()
Specified by:
getImpl in interface KeyStoreAdaptorMBean

startService

protected void startService()
                     throws Exception
Overrides:
startService in class QBeanSupport
Throws:
Exception

stopService

protected void stopService()
                    throws Exception
Overrides:
stopService in class QBeanSupport
Throws:
Exception


Copyright © 1998-2012 jPOS.org. All Rights Reserved.