org.jboss.test.security.service
Class PropertiesVerifierStore

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.test.security.service.PropertiesVerifierStore
All Implemented Interfaces:
MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , PropertiesVerifierStoreMBean (src) , Service (src) , ServiceMBean (src) , SRPVerifierStore (src)

public class PropertiesVerifierStore
extends ServiceMBeanSupport (src)
implements PropertiesVerifierStoreMBean (src) , SRPVerifierStore (src)

The PropertiesVerifierStore service is a SRPVerifierStore implementation that obtains the username and password info from a properties file and then creates an in memory SRPVerifierStore.


Nested Class Summary
 
Nested classes inherited from class org.jboss.security.srp.SRPVerifierStore (src)
SRPVerifierStore.VerifierInfo (src)
 
Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
PropertiesVerifierStore()
          Creates a new instance of PropertiesVerifierStore
 
Method Summary
 java.lang.String getJndiName()
          Get the jndi name for the SRPVerifierSource implementation binding.
 SRPVerifierStore.VerifierInfo (src) getUserVerifier(java.lang.String username)
          Get the indicated user's password verifier information.
 void setJndiName(java.lang.String jndiName)
          set the jndi name for the SRPVerifierSource implementation binding.
 void setUserVerifier(java.lang.String username, SRPVerifierStore.VerifierInfo (src)  info)
          Set the indicated users' password verifier information.
protected  void startService()
          Sub-classes should override this method to provide custum 'start' logic.
protected  void stopService()
          Sub-classes should override this method to provide custum 'stop' logic.
 void verifyUserChallenge(java.lang.String username, java.lang.Object auxChallenge)
          Verify an optional auxillary challenge sent from the client to the server.
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, 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 (src)
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 

Constructor Detail

PropertiesVerifierStore

public PropertiesVerifierStore()
Creates a new instance of PropertiesVerifierStore

Method Detail

getJndiName

public java.lang.String getJndiName()
Get the jndi name for the SRPVerifierSource implementation binding.

Specified by:
getJndiName in interface PropertiesVerifierStoreMBean (src)

setJndiName

public void setJndiName(java.lang.String jndiName)
set the jndi name for the SRPVerifierSource implementation binding.

Specified by:
setJndiName in interface PropertiesVerifierStoreMBean (src)

startService

protected void startService()
                     throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'start' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
startService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

stopService

protected void stopService()
                    throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'stop' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
stopService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

getUserVerifier

public SRPVerifierStore.VerifierInfo (src)  getUserVerifier(java.lang.String username)
                                              throws java.security.KeyException,
                                                     java.io.IOException
Description copied from interface: SRPVerifierStore (src)
Get the indicated user's password verifier information.

Specified by:
getUserVerifier in interface SRPVerifierStore (src)
Throws:
java.security.KeyException
java.io.IOException

setUserVerifier

public void setUserVerifier(java.lang.String username,
                            SRPVerifierStore.VerifierInfo (src)  info)
                     throws java.io.IOException
Description copied from interface: SRPVerifierStore (src)
Set the indicated users' password verifier information. This is equivalent to changing a user's password and should generally invalidate any existing SRP sessions and caches.

Specified by:
setUserVerifier in interface SRPVerifierStore (src)
Throws:
java.io.IOException

verifyUserChallenge

public void verifyUserChallenge(java.lang.String username,
                                java.lang.Object auxChallenge)
                         throws java.lang.SecurityException
Description copied from interface: SRPVerifierStore (src)
Verify an optional auxillary challenge sent from the client to the server. The auxChallenge object will have been decrypted if it was sent encrypted from the client. An example of a auxillary challenge would be the validation of a hardware token (SafeWord, SecureID, iButton) that the server validates to further strengthen the SRP password exchange.

Specified by:
verifyUserChallenge in interface SRPVerifierStore (src)
Throws:
java.lang.SecurityException