|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.security.srp.SRPService
public class SRPService
The JMX mbean interface for the SRP service. This mbean sets up an RMI implementation of the 'Secure Remote Password' cryptographic authentication system described in RFC2945.
| Field Summary |
|---|
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
log, 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 | |
|---|---|
SRPService()
|
|
| Method Summary | |
|---|---|
void |
closedUserSession(SRPSessionKey key)
Called when a user requests that a session be closed |
String |
getAuthenticationCacheJndiName()
Get the jndi name under which the SRPServerInterface proxy should be bound |
int |
getAuthenticationCacheResolution()
Get the auth cache resolution period in seconds |
int |
getAuthenticationCacheTimeout()
Get the auth cache timeout period in seconds |
String |
getClientSocketFactory()
Get the RMIClientSocketFactory implementation class. |
String |
getJndiName()
Get the jndi name under which the SRPServerInterface proxy should be bound |
String |
getName()
|
boolean |
getOverwriteSessions()
A flag indicating if a successful user auth for an existing session should overwrite the current session. |
boolean |
getRequireAuxChallenge()
Get if the client must supply an auxillary challenge as part of the verify phase. |
int |
getServerPort()
Get the RMI port for the SRPServerInterface |
String |
getServerSocketFactory()
Get the RMIServerSocketFactory implementation class. |
String |
getVerifierSourceJndiName()
Get the jndi name for the SRPVerifierSource implementation binding. |
Object |
invoke(org.jboss.invocation.Invocation invocation)
Expose the Invoker signature via JMX |
void |
setAuthenticationCacheJndiName(String jndiName)
Set the jndi name under which the SRPServerInterface proxy should be bound |
void |
setAuthenticationCacheResolution(int resInSecs)
Set the auth cache resolution period in seconds |
void |
setAuthenticationCacheTimeout(int timeoutInSecs)
Set the auth cache timeout period in seconds |
void |
setClientSocketFactory(String factoryClassName)
Set the RMIClientSocketFactory implementation class. |
void |
setJndiName(String jndiName)
Set the jndi name under which the SRPServerInterface proxy should be bound |
void |
setOverwriteSessions(boolean flag)
Set the flag indicating if a successful user auth for an existing session should overwrite the current session. |
void |
setRequireAuxChallenge(boolean flag)
Set if the client must supply an auxillary challenge as part of the verify phase. |
void |
setServerPort(int serverPort)
Get the RMI port for the SRPServerInterface |
void |
setServerSocketFactory(String factoryClassName)
Set the RMIServerSocketFactory implementation class. |
void |
setVerifierSourceJndiName(String jndiName)
set the jndi name for the SRPVerifierSource implementation binding. |
protected void |
startService()
|
protected void |
stopService()
|
void |
verifiedUser(SRPSessionKey key,
SRPServerSession session)
Called when username has sucessfully completed the SRP login. |
| 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 |
| 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 |
|---|
public SRPService()
| Method Detail |
|---|
public String getVerifierSourceJndiName()
getVerifierSourceJndiName in interface SRPServiceMBeanpublic void setVerifierSourceJndiName(String jndiName)
setVerifierSourceJndiName in interface SRPServiceMBeanpublic String getJndiName()
getJndiName in interface SRPServiceMBeanpublic void setJndiName(String jndiName)
setJndiName in interface SRPServiceMBeanpublic String getAuthenticationCacheJndiName()
getAuthenticationCacheJndiName in interface SRPServiceMBeanpublic void setAuthenticationCacheJndiName(String jndiName)
setAuthenticationCacheJndiName in interface SRPServiceMBeanpublic int getAuthenticationCacheTimeout()
getAuthenticationCacheTimeout in interface SRPServiceMBeanpublic void setAuthenticationCacheTimeout(int timeoutInSecs)
setAuthenticationCacheTimeout in interface SRPServiceMBeanpublic int getAuthenticationCacheResolution()
getAuthenticationCacheResolution in interface SRPServiceMBeanpublic void setAuthenticationCacheResolution(int resInSecs)
setAuthenticationCacheResolution in interface SRPServiceMBeanpublic boolean getRequireAuxChallenge()
SRPServiceMBean
getRequireAuxChallenge in interface SRPServiceMBeanpublic void setRequireAuxChallenge(boolean flag)
SRPServiceMBean
setRequireAuxChallenge in interface SRPServiceMBeanpublic boolean getOverwriteSessions()
SRPServiceMBean
getOverwriteSessions in interface SRPServiceMBeanpublic void setOverwriteSessions(boolean flag)
SRPServiceMBean
setOverwriteSessions in interface SRPServiceMBeanpublic String getClientSocketFactory()
getClientSocketFactory in interface SRPServiceMBean
public void setClientSocketFactory(String factoryClassName)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException
setClientSocketFactory in interface SRPServiceMBeanClassNotFoundException
InstantiationException
IllegalAccessExceptionpublic String getServerSocketFactory()
getServerSocketFactory in interface SRPServiceMBean
public void setServerSocketFactory(String factoryClassName)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException
setServerSocketFactory in interface SRPServiceMBeanClassNotFoundException
InstantiationException
IllegalAccessExceptionpublic int getServerPort()
getServerPort in interface SRPServiceMBeanpublic void setServerPort(int serverPort)
setServerPort in interface SRPServiceMBean
public void verifiedUser(SRPSessionKey key,
SRPServerSession session)
verifiedUser in interface SRPServerListenerpublic void closedUserSession(SRPSessionKey key)
SRPServerListener
closedUserSession in interface SRPServerListenerpublic String getName()
getName in interface org.jboss.system.ServiceMBeangetName in class org.jboss.system.ServiceMBeanSupport
public Object invoke(org.jboss.invocation.Invocation invocation)
throws Exception
SRPServiceMBean
invoke in interface SRPServiceMBeanException
protected void startService()
throws Exception
startService in class org.jboss.system.ServiceMBeanSupportException
protected void stopService()
throws Exception
stopService in class org.jboss.system.ServiceMBeanSupportException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||