org.eclipse.jetty.security.authentication
类 SessionAuthentication

java.lang.Object
  继承者 org.eclipse.jetty.security.authentication.SessionAuthentication
所有已实现的接口:
Serializable, EventListener, HttpSessionActivationListener, HttpSessionBindingListener, Authentication, Authentication.User

public class SessionAuthentication
extends Object
implements Authentication.User, Serializable, HttpSessionActivationListener, HttpSessionBindingListener

另请参见:
序列化表格

嵌套类摘要
 
从接口 org.eclipse.jetty.server.Authentication 继承的嵌套类/接口
Authentication.Challenge, Authentication.Deferred, Authentication.Failure, Authentication.ResponseSent, Authentication.SendSuccess, Authentication.User, Authentication.Wrapped
 
字段摘要
static String __J_AUTHENTICATED
           
 
从接口 org.eclipse.jetty.server.Authentication 继承的字段
NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED
 
构造方法摘要
SessionAuthentication(String method, UserIdentity userIdentity, Object credentials)
           
 
方法摘要
 String getAuthMethod()
           
 UserIdentity getUserIdentity()
           
 boolean isUserInRole(UserIdentity.Scope scope, String role)
           
 void logout()
           
 void sessionDidActivate(HttpSessionEvent se)
          Notification that the session has just been activated.
 void sessionWillPassivate(HttpSessionEvent se)
          Notification that the session is about to be passivated.
 String toString()
           
 void valueBound(HttpSessionBindingEvent event)
          Notifies the object that it is being bound to a session and identifies the session.
 void valueUnbound(HttpSessionBindingEvent event)
          Notifies the object that it is being unbound from a session and identifies the session.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

__J_AUTHENTICATED

public static final String __J_AUTHENTICATED
另请参见:
常量字段值
构造方法详细信息

SessionAuthentication

public SessionAuthentication(String method,
                             UserIdentity userIdentity,
                             Object credentials)
方法详细信息

getAuthMethod

public String getAuthMethod()
指定者:
接口 Authentication.User 中的 getAuthMethod

getUserIdentity

public UserIdentity getUserIdentity()
指定者:
接口 Authentication.User 中的 getUserIdentity

isUserInRole

public boolean isUserInRole(UserIdentity.Scope scope,
                            String role)
指定者:
接口 Authentication.User 中的 isUserInRole

logout

public void logout()
指定者:
接口 Authentication.User 中的 logout

toString

public String toString()
覆盖:
Object 中的 toString

sessionWillPassivate

public void sessionWillPassivate(HttpSessionEvent se)
从接口 HttpSessionActivationListener 复制的描述
Notification that the session is about to be passivated.

指定者:
接口 HttpSessionActivationListener 中的 sessionWillPassivate

sessionDidActivate

public void sessionDidActivate(HttpSessionEvent se)
从接口 HttpSessionActivationListener 复制的描述
Notification that the session has just been activated.

指定者:
接口 HttpSessionActivationListener 中的 sessionDidActivate

valueBound

public void valueBound(HttpSessionBindingEvent event)
从接口 HttpSessionBindingListener 复制的描述
Notifies the object that it is being bound to a session and identifies the session.

指定者:
接口 HttpSessionBindingListener 中的 valueBound
参数:
event - the event that identifies the session
另请参见:
HttpSessionBindingListener.valueUnbound(javax.servlet.http.HttpSessionBindingEvent)

valueUnbound

public void valueUnbound(HttpSessionBindingEvent event)
从接口 HttpSessionBindingListener 复制的描述
Notifies the object that it is being unbound from a session and identifies the session.

指定者:
接口 HttpSessionBindingListener 中的 valueUnbound
参数:
event - the event that identifies the session
另请参见:
HttpSessionBindingListener.valueBound(javax.servlet.http.HttpSessionBindingEvent)


Copyright © 2013. All Rights Reserved.