public final class SSOClusterManager extends Object implements SSOClusterManager
| Constructor and Description |
|---|
SSOClusterManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependencies(org.jboss.msc.service.ServiceTarget target,
org.jboss.msc.service.ServiceBuilder<?> builder) |
void |
addSession(String ssoId,
FullyQualifiedSessionId sessionId)
Notify the cluster of the addition of a Session to an SSO session.
|
void |
cacheEntryModified(org.infinispan.notifications.cachelistener.event.CacheEntryModifiedEvent<SSOKey,?> event)
Extracts an SSO session id and uses it in an invocation of
ClusteredSingleSignOn.update(). |
void |
cacheEntryRemoved(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent<SSOKey,?> event)
Extracts an SSO session id and uses it in an invocation of
ClusteredSingleSignOn.deregister(String). |
SSOLocalManager |
getSSOLocalManager()
Gets the SingleSignOn valve for which this object is handling cluster communications.
|
void |
logout(String ssoId)
Notifies the cluster that a single sign on session has been terminated due to a user logout.
|
SSOCredentials |
lookup(String ssoId)
Queries the cluster for the existence of a SSO session with the given id, returning a
SSOCredentials if one
is found. |
void |
register(String ssoId,
String authType,
String username,
String password)
Notifies the cluster of the creation of a new SSO entry.
|
void |
removeSession(String ssoId,
FullyQualifiedSessionId sessionId)
Notify the cluster of the removal of a Session from an SSO session.
|
void |
setCacheContainerName(String cacheContainerName) |
void |
setCacheName(String cacheName) |
void |
setSSOLocalManager(SSOLocalManager localManager)
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(String ssoId,
String authType,
String username,
String password)
Notifies the cluster of an update of the security credentials associated with an SSO session.
|
public void addDependencies(org.jboss.msc.service.ServiceTarget target,
org.jboss.msc.service.ServiceBuilder<?> builder)
addDependencies in interface SSOClusterManagerpublic void setCacheContainerName(String cacheContainerName)
setCacheContainerName in interface SSOClusterManagerpublic void setCacheName(String cacheName)
setCacheName in interface SSOClusterManagerpublic void addSession(String ssoId, FullyQualifiedSessionId sessionId)
addSession in interface SSOClusterManagerssoId - the id of the SSO sessionsessionId - id of the Session that has been addedpublic SSOLocalManager getSSOLocalManager()
getSSOLocalManager in interface SSOClusterManagerSingleSignOn valve.public void setSSOLocalManager(SSOLocalManager localManager)
NOTE: This method must be called before calls can be made to the other methods of this interface.
setSSOLocalManager in interface SSOClusterManagerlocalManager - a SingleSignOn valve.public void logout(String ssoId)
logout in interface SSOClusterManagerssoId - public SSOCredentials lookup(String ssoId)
SSOClusterManagerSSOCredentials if one
is found.lookup in interface SSOClusterManagerssoId - the id of the SSO sessionSSOCredentials created using information found on another cluster node, or null if no
entry could be found.public void register(String ssoId, String authType, String username, String password)
register in interface SSOClusterManagerssoId - 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 removeSession(String ssoId, FullyQualifiedSessionId sessionId)
removeSession in interface SSOClusterManagerssoId - the id of the SSO sessionsessionId - id of the Session that has been removedpublic void updateCredentials(String ssoId, String authType, String username, String password)
updateCredentials in interface SSOClusterManagerssoId - 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 cacheEntryRemoved(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent<SSOKey,?> event)
ClusteredSingleSignOn.deregister(String).
Ignores invocations resulting from Cache changes originated by this object.event - public void cacheEntryModified(org.infinispan.notifications.cachelistener.event.CacheEntryModifiedEvent<SSOKey,?> event)
ClusteredSingleSignOn.update().
Ignores invocations resulting from Cache changes originated by this object.
Ignores invocations for SSO session id's that are not registered with the local SingleSignOn valve.event - public void start()
throws Exception
start in interface SSOClusterManagerException - if this component detects a fatal error that prevents this component from being usedpublic void stop()
throws Exception
stop in interface SSOClusterManagerException - if this component detects a fatal error that needs to be reportedCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.