Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » web » tomcat » tc4 » authenticator » [javadoc | source]
org.jboss.web.tomcat.tc4.authenticator
public class: SingleSignOn [javadoc | source]
java.lang.Object
   org.apache.catalina.valves.ValveBase
      org.jboss.web.tomcat.tc4.authenticator.SingleSignOn

All Implemented Interfaces:
    org.apache.catalina.SessionListener, org.apache.catalina.Lifecycle

A Valve that supports a "single sign on" user experience, where the security identity of a user who successfully authenticates to one web application is propogated to other web applications in the same security domain.

USAGE: For successful use, the following requirements must be met: be met:

Field Summary
protected static final  StringManager sm    The string manager for this package. 
protected  HashMap cache    The cache of SingleSignOnEntry instances for authenticated Principals, keyed by the cookie value that is used to select them. 
protected  int debug    The debugging detail level for this component. 
protected static  String info    Descriptive information about this Valve implementation. 
protected  LifecycleSupport lifecycle    The lifecycle event support for this component. 
protected  HashMap reverse    The cache of single sign on identifiers, keyed by the Session that is associated with them. 
protected  boolean started    Component started flag. 
Method from org.jboss.web.tomcat.tc4.authenticator.SingleSignOn Summary:
addLifecycleListener,   associate,   deregister,   findLifecycleListeners,   getDebug,   getInfo,   invoke,   log,   log,   lookup,   register,   removeLifecycleListener,   removeSession,   sessionEvent,   setDebug,   start,   stop,   toString,   update
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.web.tomcat.tc4.authenticator.SingleSignOn Detail:
 public  void addLifecycleListener(LifecycleListener listener) 
    Add a lifecycle event listener to this component.
  void associate(String ssoId,
    Session session) 
    Associate the specified single sign on identifier with the specified Session.
  void deregister(String ssoId) 
    Deregister the specified single sign on identifier, and invalidate any associated sessions.
 public LifecycleListener[] findLifecycleListeners() 
    Get the lifecycle listeners associated with this lifecycle. If this Lifecycle has no listeners registered, a zero-length array is returned.
 public int getDebug() 
    Return the debugging detail level.
 public String getInfo() 
    Return descriptive information about this Valve implementation.
 public  void invoke(Request request,
    Response response,
    ValveContext context) throws IOException, ServletException 
    Perform single-sign-on support processing for this request.
 protected  void log(String message) 
    Log a message on the Logger associated with our Container (if any).
 protected  void log(String message,
    Throwable throwable) 
    Log a message on the Logger associated with our Container (if any).
 protected SingleSignOnEntry lookup(String ssoId) 
    Look up and return the cached SingleSignOn entry associated with this sso id value, if there is one; otherwise return null.
  void register(String ssoId,
    Principal principal,
    String authType,
    String username,
    String password) 
    Register the specified Principal as being associated with the specified value for the single sign on identifier.
 public  void removeLifecycleListener(LifecycleListener listener) 
    Remove a lifecycle event listener from this component.
  void removeSession(String ssoId,
    Session session) 
    Remove a single Session from a SingleSignOn. Called when a session is timed out and no longer active.
 public  void sessionEvent(SessionEvent event) 
    Acknowledge the occurrence of the specified event.
 public  void setDebug(int debug) 
    Set the debugging detail level.
 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() 
    Updates the Jakarta version by ensuring that member container is not null before using it.

    If getContainer() returns null, this method functions as per Object.toString() . Otherwise, it functions as per the superclass version .

  void update(String ssoId,
    Principal principal,
    String authType,
    String username,
    String password) 
    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.