org.jboss.security.srp
Class SRPVerifierStoreService
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.security.srp.SRPVerifierStoreService
- All Implemented Interfaces:
- MBeanRegistration, NotificationBroadcaster, NotificationEmitter, org.jboss.kernel.spi.dependency.KernelControllerContextAware, SRPVerifierStoreServiceMBean, Service, ServiceMBean
public class SRPVerifierStoreService
- extends ServiceMBeanSupport
- implements SRPVerifierStoreServiceMBean
The JMX mbean interface for the SRP password verifier store. This
implementation uses the SerialObjectStore as a simple and yet secure
source of usernames and their password verifiers and verifier salts. It
also provides a simple interface for adding and deleting users from the
SerialObjectStore. The mbean stores a non-serializable reference to the
SRPVerifierStore interface in JNDI under the property.
- Version:
- $Revision: 81038 $
- Author:
- Scott.Stark@jboss.org
- See Also:
SerialObjectStore
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, createService, destroy, destroyService, getDeploymentInfo, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, stop, stopService, unsetKernelControllerContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SRPVerifierStoreService
public SRPVerifierStoreService()
getJndiName
public String getJndiName()
- Get the jndi name for the SRPVerifierSource implementation binding.
- Specified by:
getJndiName
in interface SRPVerifierStoreServiceMBean
setJndiName
public void setJndiName(String jndiName)
- set the jndi name for the SRPVerifierSource implementation binding.
- Specified by:
setJndiName
in interface SRPVerifierStoreServiceMBean
setStoreFile
public void setStoreFile(String fileName)
throws IOException
- Description copied from interface:
SRPVerifierStoreServiceMBean
- Set the location of the user password verifier store
- Specified by:
setStoreFile
in interface SRPVerifierStoreServiceMBean
- Throws:
IOException
addUser
public void addUser(String username,
String password)
throws IOException
- Description copied from interface:
SRPVerifierStoreServiceMBean
- Add a user to the store.
- Specified by:
addUser
in interface SRPVerifierStoreServiceMBean
- Throws:
IOException
delUser
public void delUser(String username)
throws IOException
- Description copied from interface:
SRPVerifierStoreServiceMBean
- Delete a user to the store.
- Specified by:
delUser
in interface SRPVerifierStoreServiceMBean
- Throws:
IOException
getName
public String getName()
- Specified by:
getName
in interface ServiceMBean
- Overrides:
getName
in class ServiceMBeanSupport
initService
public void initService()
throws Exception
- Throws:
Exception
startService
public void startService()
throws Exception
- Overrides:
startService
in class ServiceMBeanSupport
- Throws:
Exception
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.