public class SessionAuthentication extends Object implements Authentication.User, Serializable, javax.servlet.http.HttpSessionActivationListener, javax.servlet.http.HttpSessionBindingListener
Authentication.Challenge, Authentication.Deferred, Authentication.Failure, Authentication.ResponseSent, Authentication.SendSuccess, Authentication.User, Authentication.Wrapped
Modifier and Type | Field and Description |
---|---|
static String |
__J_AUTHENTICATED |
NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED
Constructor and Description |
---|
SessionAuthentication(String method,
UserIdentity userIdentity,
Object credentials) |
Modifier and Type | Method and Description |
---|---|
String |
getAuthMethod() |
UserIdentity |
getUserIdentity() |
boolean |
isUserInRole(UserIdentity.Scope scope,
String role) |
void |
logout() |
void |
sessionDidActivate(javax.servlet.http.HttpSessionEvent se) |
void |
sessionWillPassivate(javax.servlet.http.HttpSessionEvent se) |
String |
toString() |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event) |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent event) |
public static final String __J_AUTHENTICATED
public SessionAuthentication(String method, UserIdentity userIdentity, Object credentials)
public String getAuthMethod()
getAuthMethod
in interface Authentication.User
public UserIdentity getUserIdentity()
getUserIdentity
in interface Authentication.User
public boolean isUserInRole(UserIdentity.Scope scope, String role)
isUserInRole
in interface Authentication.User
public void logout()
logout
in interface Authentication.User
public void sessionWillPassivate(javax.servlet.http.HttpSessionEvent se)
sessionWillPassivate
in interface javax.servlet.http.HttpSessionActivationListener
public void sessionDidActivate(javax.servlet.http.HttpSessionEvent se)
sessionDidActivate
in interface javax.servlet.http.HttpSessionActivationListener
public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.