org.jboss.security.jce
Class JCEProviderService

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.security.jce.JCEProviderService
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, JCEProviderServiceMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class JCEProviderService
extends org.jboss.system.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: 1.1.6.1 $
Author:
Jason Essington

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
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
 
Constructor Summary
JCEProviderService()
           
 
Method Summary
protected  void createService()
           
protected  void destroyService()
           
 Element getJceProviders()
           
 void setJceProviders(Element element)
           
 
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, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop, stopService
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

JCEProviderService

public JCEProviderService()
Method Detail

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 org.jboss.system.ServiceMBeanSupport
Throws:
Exception

destroyService

protected void destroyService()
Overrides:
destroyService in class org.jboss.system.ServiceMBeanSupport


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.