org.apache.catalina.authenticator
クラス SingleSignOn

java.lang.Object
  |
  +--org.apache.catalina.valves.ValveBase
        |
        +--org.apache.catalina.authenticator.SingleSignOn
すべての実装インタフェース:
Contained, Lifecycle, SessionListener, Valve

public class SingleSignOn
extends ValveBase
implements Lifecycle, SessionListener

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. For successful use, the following requirements must be met:

バージョン:
$Revision: 1.9 $ $Date: 2001/08/03 22:39:33 $
作成者:
Craig R. McClanahan

フィールドの概要
protected  java.util.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 java.lang.String info
          Descriptive information about this Valve implementation.
protected  LifecycleSupport lifecycle
          The lifecycle event support for this component.
protected  java.util.HashMap reverse
          The cache of single sign on identifiers, keyed by the Session that is associated with them.
protected static StringManager sm
          The string manager for this package.
protected  boolean started
          Component started flag.
 
クラス org.apache.catalina.valves.ValveBase から継承したフィールド
container
 
インタフェース org.apache.catalina.Lifecycle から継承したフィールド
START_EVENT, STOP_EVENT
 
コンストラクタの概要
SingleSignOn()
           
 
メソッドの概要
 void addLifecycleListener(LifecycleListener listener)
          Add a lifecycle event listener to this component.
 int getDebug()
          Return the debugging detail level.
 java.lang.String getInfo()
          Return descriptive information about this Valve implementation.
 void invoke(Request request, Response response, ValveContext context)
          Perform single-sign-on support processing for this request.
protected  void log(java.lang.String message)
          Log a message on the Logger associated with our Container (if any).
protected  void log(java.lang.String message, java.lang.Throwable throwable)
          Log a message on the Logger associated with our Container (if any).
protected  org.apache.catalina.authenticator.SingleSignOnEntry lookup(java.lang.String ssoId)
          Look up and return the cached SingleSignOn entry associated with this sso id value, if there is one; otherwise return null.
 void removeLifecycleListener(LifecycleListener listener)
          Remove a lifecycle event listener from this component.
 void sessionEvent(SessionEvent event)
          Acknowledge the occurrence of the specified event.
 void setDebug(int debug)
          Set the debugging detail level.
 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.
 java.lang.String toString()
          Return a String rendering of this object.
 
クラス org.apache.catalina.valves.ValveBase から継承したメソッド
getContainer, setContainer
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

cache

protected java.util.HashMap cache
The cache of SingleSignOnEntry instances for authenticated Principals, keyed by the cookie value that is used to select them.

debug

protected int debug
The debugging detail level for this component.

info

protected static java.lang.String info
Descriptive information about this Valve implementation.

lifecycle

protected LifecycleSupport lifecycle
The lifecycle event support for this component.

reverse

protected java.util.HashMap reverse
The cache of single sign on identifiers, keyed by the Session that is associated with them.

sm

protected static final StringManager sm
The string manager for this package.

started

protected boolean started
Component started flag.
コンストラクタの詳細

SingleSignOn

public SingleSignOn()
メソッドの詳細

getDebug

public int getDebug()
Return the debugging detail level.

setDebug

public void setDebug(int debug)
Set the debugging detail level.
パラメータ:
debug - The new debugging detail level

addLifecycleListener

public void addLifecycleListener(LifecycleListener listener)
Add a lifecycle event listener to this component.
定義:
インタフェース Lifecycle 内の addLifecycleListener
パラメータ:
listener - The listener to add

removeLifecycleListener

public void removeLifecycleListener(LifecycleListener listener)
Remove a lifecycle event listener from this component.
定義:
インタフェース Lifecycle 内の removeLifecycleListener
パラメータ:
listener - The listener to remove

start

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.
定義:
インタフェース Lifecycle 内の start
例外:
java.lang.IllegalStateException - if this component has already been started
LifecycleException - if this component detects a fatal error that prevents this component from being used

stop

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.
定義:
インタフェース Lifecycle 内の stop
例外:
java.lang.IllegalStateException - if this component has not been started
LifecycleException - if this component detects a fatal error that needs to be reported

sessionEvent

public void sessionEvent(SessionEvent event)
Acknowledge the occurrence of the specified event.
定義:
インタフェース SessionListener 内の sessionEvent
パラメータ:
event - SessionEvent that has occurred

getInfo

public java.lang.String getInfo()
Return descriptive information about this Valve implementation.
オーバーライド:
クラス ValveBase 内の getInfo

invoke

public void invoke(Request request,
                   Response response,
                   ValveContext context)
            throws java.io.IOException,
                   javax.servlet.ServletException
Perform single-sign-on support processing for this request.
オーバーライド:
クラス ValveBase 内の invoke
パラメータ:
request - The servlet request we are processing
response - The servlet response we are creating
context - The valve context used to invoke the next valve in the current processing pipeline
例外:
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet error occurs

toString

public java.lang.String toString()
Return a String rendering of this object.
オーバーライド:
クラス java.lang.Object 内の toString

log

protected void log(java.lang.String message)
Log a message on the Logger associated with our Container (if any).
パラメータ:
message - Message to be logged

log

protected void log(java.lang.String message,
                   java.lang.Throwable throwable)
Log a message on the Logger associated with our Container (if any).
パラメータ:
message - Message to be logged
throwable - Associated exception

lookup

protected org.apache.catalina.authenticator.SingleSignOnEntry lookup(java.lang.String ssoId)
Look up and return the cached SingleSignOn entry associated with this sso id value, if there is one; otherwise return null.
パラメータ:
ssoId - Single sign on identifier to look up


Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.