Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » catalina » ha » authenticator » [javadoc | source]
org.apache.catalina.ha.authenticator
public class: ClusterSingleSignOn [javadoc | source]
java.lang.Object
   org.apache.catalina.valves.ValveBase
      org.apache.catalina.authenticator.SingleSignOn
         org.apache.catalina.ha.authenticator.ClusterSingleSignOn

All Implemented Interfaces:
    SessionListener, Lifecycle, Valve, MBeanRegistration, Contained

A Valve that supports a "single sign on" user experience on each nodes of a cluster, where the security identity of a user who successfully authenticates to one web application is propogated to other web applications and to other nodes cluster in the same security domain. For successful use, the following requirements must be met:
Field Summary
protected static  String info    Descriptive information about this Valve implementation. 
protected  int messageNumber     
Fields inherited from org.apache.catalina.authenticator.SingleSignOn:
cache,  info,  lifecycle,  reverse,  sm,  started
Fields inherited from org.apache.catalina.valves.ValveBase:
container,  containerLog,  info,  next,  sm,  domain,  oname,  mserver,  controller
Method from org.apache.catalina.ha.authenticator.ClusterSingleSignOn Summary:
associate,   associateLocal,   deregister,   deregister,   deregisterLocal,   deregisterLocal,   getCluster,   getInfo,   register,   registerLocal,   removeSession,   removeSessionLocal,   setCluster,   start,   stop,   toString,   update,   updateLocal
Methods from org.apache.catalina.authenticator.SingleSignOn:
addLifecycleListener,   associate,   deregister,   deregister,   findLifecycleListeners,   getCookieDomain,   getInfo,   getRequireReauthentication,   invoke,   lookup,   reauthenticate,   register,   removeLifecycleListener,   removeSession,   sessionEvent,   setCookieDomain,   setRequireReauthentication,   start,   stop,   toString,   update
Methods from org.apache.catalina.valves.ValveBase:
backgroundProcess,   createObjectName,   event,   getContainer,   getContainerName,   getController,   getDomain,   getInfo,   getNext,   getObjectName,   getParentName,   invoke,   postDeregister,   postRegister,   preDeregister,   preRegister,   setContainer,   setController,   setNext,   setObjectName,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.ha.authenticator.ClusterSingleSignOn Detail:
 protected  void associate(String ssoId,
    Session session) 
    Notify the cluster of the addition of a Session to an SSO session and associate the specified single sign on identifier with the specified Session on the local node.
 protected  void associateLocal(String ssoId,
    Session session) 
 protected  void deregister(String ssoId) 
    Notifies the cluster that a single sign on session has been terminated due to a user logout, deregister the specified single sign on identifier, and invalidate any associated sessions on the local node.
 protected  void deregister(String ssoId,
    Session session) 
    Notify the cluster of the removal of a Session from an SSO session and deregister the specified session. If it is the last session, then also get rid of the single sign on identifier on the local node.
 protected  void deregisterLocal(String ssoId) 
 protected  void deregisterLocal(String ssoId,
    Session session) 
 public CatalinaCluster getCluster() 
 public String getInfo() 
    Return descriptive information about this Valve implementation.
 protected  void register(String ssoId,
    Principal principal,
    String authType,
    String username,
    String password) 
    Notifies the cluster of the creation of a new SSO entry and register the specified Principal as being associated with the specified value for the single sign on identifier.
 protected  void registerLocal(String ssoId,
    Principal principal,
    String authType,
    String username,
    String password) 
 protected  void removeSession(String ssoId,
    Session session) 
    Remove a single Session from a SingleSignOn and notify the cluster of the removal. Called when a session is timed out and no longer active.
 protected  void removeSessionLocal(String ssoId,
    Session session) 
 public  void setCluster(CatalinaCluster cluster) 
 public  void start() throws LifecycleException 
    Prepare for the beginning of active use of the public methods of this component. This method should be called after configure(), and before any of the public methods of the component are utilized.
 public  void stop() throws LifecycleException 
    Gracefully terminate the active use of the public methods of this component. This method should be the last one called on a given instance of this component.
 public String toString() 
    Return a String rendering of this object.
 protected  void update(String ssoId,
    Principal principal,
    String authType,
    String username,
    String password) 
    Notifies the cluster of an update of the security credentials associated with an SSO session. Updates any SingleSignOnEntry found under key ssoId with the given authentication data.

    The purpose of this method is to allow an SSO entry that was established without a username/password combination (i.e. established following DIGEST or CLIENT-CERT authentication) to be updated with a username and password if one becomes available through a subsequent BASIC or FORM authentication. The SSO entry will then be usable for reauthentication.

    NOTE: Only updates the SSO entry if a call to SingleSignOnEntry.getCanReauthenticate() returns false; otherwise, it is assumed that the SSO entry already has sufficient information to allow reauthentication and that no update is needed.

 protected  void updateLocal(String ssoId,
    Principal principal,
    String authType,
    String username,
    String password)