org.jboss.security.jce
Class JCEProviderService
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.security.jce.JCEProviderService
- All Implemented Interfaces:
- MBeanRegistration, NotificationBroadcaster, NotificationEmitter, org.jboss.kernel.spi.dependency.KernelControllerContextAware, JCEProviderServiceMBean, Service, ServiceMBean
public class JCEProviderService
- extends ServiceMBeanSupport
- implements JCEProviderServiceMBean
The JCEProviderService is capable of loading one or more third party
JCE providers at runtime. The configuration looks something like:
<mbean code="org.jboss.security.jce.JCEProviderService"
name="Security:service=JCEProviderService">
<attribute name="JceProviders">
<providers>
<provider class="org.bouncycastle.jce.provider.BouncyCastleProvider" position="3"/>
<provider class="cryptix.provider.Cryptix"/>
</providers>
</attribute>
</mbean>
The required class attribute is the class name of the Provider to load. The optional position attribute
is the position in the provider list that this provider would like to be loaded.
Any provider that already exists in the provider list will not be loaded again, and it will not be removed from
the list when the JCEProviderService is destroyed.
- Version:
- $Revision: 85945 $
- Author:
- Jason Essington
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, destroy, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, startService, stop, stopService, unsetKernelControllerContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JCEProviderService
public JCEProviderService()
setJceProviders
public void setJceProviders(Element element)
- Specified by:
setJceProviders
in interface JCEProviderServiceMBean
getJceProviders
public Element getJceProviders()
- Specified by:
getJceProviders
in interface JCEProviderServiceMBean
createService
protected void createService()
throws Exception
- Overrides:
createService
in class ServiceMBeanSupport
- Throws:
Exception
destroyService
protected void destroyService()
- Overrides:
destroyService
in class ServiceMBeanSupport
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.