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.Userpublic UserIdentity getUserIdentity()
getUserIdentity in interface Authentication.Userpublic boolean isUserInRole(UserIdentity.Scope scope, String role)
isUserInRole in interface Authentication.Userpublic void logout()
logout in interface Authentication.Userpublic void sessionWillPassivate(javax.servlet.http.HttpSessionEvent se)
sessionWillPassivate in interface javax.servlet.http.HttpSessionActivationListenerpublic void sessionDidActivate(javax.servlet.http.HttpSessionEvent se)
sessionDidActivate in interface javax.servlet.http.HttpSessionActivationListenerpublic void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
valueBound in interface javax.servlet.http.HttpSessionBindingListenerpublic void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
valueUnbound in interface javax.servlet.http.HttpSessionBindingListenerCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.