org.jboss.security.srp
Class SRPVerifierStoreService

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

public class SRPVerifierStoreService
extends org.jboss.system.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: 57210 $
Author:
Scott.Stark@jboss.org
See Also:
SerialObjectStore

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
SRPVerifierStoreService()
           
 
Method Summary
 void addUser(String username, String password)
          Add a user to the store.
 void delUser(String username)
          Delete a user to the store.
 String getJndiName()
          Get the jndi name for the SRPVerifierSource implementation binding.
 String getName()
           
 void initService()
           
 void setJndiName(String jndiName)
          set the jndi name for the SRPVerifierSource implementation binding.
 void setStoreFile(String fileName)
          Set the location of the user password verifier store
 void startService()
           
 
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, postDeregister, postRegister, preDeregister, preRegister, start, 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
getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

SRPVerifierStoreService

public SRPVerifierStoreService()
Method Detail

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 org.jboss.system.ServiceMBean
Overrides:
getName in class org.jboss.system.ServiceMBeanSupport

initService

public void initService()
                 throws Exception
Throws:
Exception

startService

public void startService()
                  throws Exception
Overrides:
startService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception


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