|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.web.tomcat.tc5.sso.TreeCacheSSOClusterManager
An implementation of SSOClusterManager that uses a TreeCache to share SSO information between cluster nodes.
| Nested Class Summary | |
static class |
TreeCacheSSOClusterManager.SSOCredentials (src)
Private class used to store authentication credentials in the TreeCache. |
| Field Summary | |
static java.lang.String |
DEFAULT_GLOBAL_CACHE_NAME
Default global value for the cacheName property |
| Constructor Summary | |
TreeCacheSSOClusterManager()
Creates a new TreeCacheSSOClusterManager |
|
| Method Summary | |
void |
addLifecycleListener(LifecycleListener listener)
Add a lifecycle event listener to this component. |
void |
addSession(java.lang.String ssoId,
Session session)
Notify the cluster of the addition of a Session to an SSO session. |
void |
cacheStarted(TreeCache (src) cache)
Does nothing |
void |
cacheStopped(TreeCache (src) cache)
Does nothing |
LifecycleListener[] |
findLifecycleListeners()
Get the lifecycle listeners associated with this lifecycle. |
java.lang.String |
getCacheName()
|
ObjectName (src) |
getCacheObjectName()
|
ClusteredSingleSignOn (src) |
getSingleSignOnValve()
Gets the SingleSignOn valve for which this object is handling cluster communications. |
void |
logout(java.lang.String ssoId)
Notifies the cluster that a single sign on session has been terminated due to a user logout. |
org.jboss.web.tomcat.tc5.sso.SingleSignOnEntry |
lookup(java.lang.String ssoId)
Queries the cluster for the existence of an SSO session with the given id, returning a SingleSignOnEntry if one is found. |
void |
nodeCreated(Fqn (src) fqn)
Does nothing |
void |
nodeEvicted(Fqn (src) fqn)
Does nothing. |
void |
nodeLoaded(Fqn (src) fqn)
Does nothing |
void |
nodeModified(Fqn (src) fqn)
Extracts an SSO session id from the Fqn and uses it in an invocation of ClusteredSingleSignOn.update(). |
void |
nodeRemoved(Fqn (src) fqn)
Extracts an SSO session id from the Fqn and uses it in an invocation of ClusteredSingleSignOn.deregister(String). |
void |
nodeVisited(Fqn (src) fqn)
Does nothing |
void |
register(java.lang.String ssoId,
java.lang.String authType,
java.lang.String username,
java.lang.String password)
Notifies the cluster of the creation of a new SSO entry. |
void |
removeLifecycleListener(LifecycleListener listener)
Remove a lifecycle event listener from this component. |
void |
removeSession(java.lang.String ssoId,
Session session)
Notify the cluster of the removal of a Session from an SSO session. |
void |
setCacheName(java.lang.String objectName)
|
void |
setCacheObjectName(ObjectName (src) objectName)
|
void |
setSingleSignOnValve(ClusteredSingleSignOn (src) valve)
Sets the SingleSignOn valve for which this object is handling cluster communications. |
void |
start()
Prepare for the beginning of active use of the public methods of this component. |
void |
stop()
Gracefully terminate the active use of the public methods of this component. |
void |
updateCredentials(java.lang.String ssoId,
java.lang.String authType,
java.lang.String username,
java.lang.String password)
Notifies the cluster of an update of the security credentials associated with an SSO session. |
void |
viewChange(View new_view)
Does nothing |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String DEFAULT_GLOBAL_CACHE_NAME
| Constructor Detail |
public TreeCacheSSOClusterManager()
| Method Detail |
public java.lang.String getCacheName()
public void setCacheName(java.lang.String objectName)
throws java.lang.Exception
java.lang.Exceptionpublic ObjectName (src) getCacheObjectName()
public void setCacheObjectName(ObjectName (src) objectName)
throws java.lang.Exception
java.lang.Exception
public void addSession(java.lang.String ssoId,
Session session)
addSession in interface SSOClusterManager (src) ssoId - the id of the SSO sessionsession - the Session that has been addedpublic ClusteredSingleSignOn (src) getSingleSignOnValve()
getSingleSignOnValve in interface SSOClusterManager (src) SingleSignOn valve.public void setSingleSignOnValve(ClusteredSingleSignOn (src) valve)
NOTE: This method must be called before calls can be made to the other methods of this interface.
setSingleSignOnValve in interface SSOClusterManager (src) valve - a SingleSignOn valve.public void logout(java.lang.String ssoId)
logout in interface SSOClusterManager (src) ssoId - public org.jboss.web.tomcat.tc5.sso.SingleSignOnEntry lookup(java.lang.String ssoId)
SingleSignOnEntry if one is found.
lookup in interface SSOClusterManager (src) ssoId - the id of the SSO session
SingleSignOnEntry created using information
found on another cluster node, or null if no
entry could be found.
public void register(java.lang.String ssoId,
java.lang.String authType,
java.lang.String username,
java.lang.String password)
register in interface SSOClusterManager (src) ssoId - the id of the SSO sessionauthType - the type of authenticator (BASIC, CLIENT-CERT, DIGEST
or FORM) used to authenticate the SSO.username - the username (if any) used for the authenticationpassword - the password (if any) used for the authentication
public void removeSession(java.lang.String ssoId,
Session session)
removeSession in interface SSOClusterManager (src) ssoId - the id of the SSO sessionsession - the Session that has been removed
public void updateCredentials(java.lang.String ssoId,
java.lang.String authType,
java.lang.String username,
java.lang.String password)
updateCredentials in interface SSOClusterManager (src) ssoId - the id of the SSO sessionauthType - the type of authenticator (BASIC, CLIENT-CERT, DIGEST
or FORM) used to authenticate the SSO.username - the username (if any) used for the authenticationpassword - the password (if any) used for the authenticationpublic void nodeCreated(Fqn (src) fqn)
nodeCreated in interface TreeCacheListener (src) fqn - public void nodeLoaded(Fqn (src) fqn)
nodeLoaded in interface TreeCacheListener (src) public void nodeVisited(Fqn (src) fqn)
nodeVisited in interface TreeCacheListener (src) fqn - public void cacheStarted(TreeCache (src) cache)
cacheStarted in interface TreeCacheListener (src) cache - public void cacheStopped(TreeCache (src) cache)
cacheStopped in interface TreeCacheListener (src) cache - public void nodeRemoved(Fqn (src) fqn)
ClusteredSingleSignOn.deregister(String).
Ignores invocations resulting from TreeCache changes originated by
this object.
nodeRemoved in interface TreeCacheListener (src) fqn - the fully-qualified name of the node that was removedpublic void nodeModified(Fqn (src) fqn)
ClusteredSingleSignOn.update().
Only responds to modifications of nodes whose FQN's final segment is
"credentials".
Ignores invocations resulting from TreeCache changes originated by
this object.
Ignores invocations for SSO session id's that are not registered
with the local SingleSignOn valve.
nodeModified in interface TreeCacheListener (src) fqn - the fully-qualified name of the node that was modifiedpublic void viewChange(View new_view)
viewChange in interface TreeCacheListener (src) public void nodeEvicted(Fqn (src) fqn)
nodeEvicted in interface TreeCacheListener (src) fqn - public void addLifecycleListener(LifecycleListener listener)
listener - The listener to addpublic LifecycleListener[] findLifecycleListeners()
public void removeLifecycleListener(LifecycleListener listener)
listener - The listener to remove
public void start()
throws LifecycleException
LifecycleException - if this component detects a fatal error
that prevents this component from being used
public void stop()
throws LifecycleException
LifecycleException - if this component detects a fatal error
that needs to be reported
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||