public abstract class AbstractUserAuthentication extends java.lang.Object implements Authentication.User, java.io.Serializable
Authentication.Challenge, Authentication.Deferred, Authentication.Failed, Authentication.Failure, Authentication.LoginAuthentication, Authentication.LogoutAuthentication, Authentication.NonAuthenticated, Authentication.ResponseSent, Authentication.SendSuccess, Authentication.User, Authentication.Wrapped| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
_method |
protected UserIdentity |
_userIdentity |
NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED| Constructor and Description |
|---|
AbstractUserAuthentication(java.lang.String method,
UserIdentity userIdentity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
declaredRolesContains(java.lang.String roleName) |
java.lang.String |
getAuthMethod() |
UserIdentity |
getUserIdentity() |
boolean |
isUserInRole(UserIdentity.Scope scope,
java.lang.String role) |
Authentication |
logout(javax.servlet.ServletRequest request)
Remove any user information that may be present in the request
such that a call to getUserPrincipal/getRemoteUser will return null.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlogoutprotected java.lang.String _method
protected transient UserIdentity _userIdentity
public AbstractUserAuthentication(java.lang.String method,
UserIdentity userIdentity)
public java.lang.String getAuthMethod()
getAuthMethod in interface Authentication.Userpublic UserIdentity getUserIdentity()
getUserIdentity in interface Authentication.Userpublic boolean isUserInRole(UserIdentity.Scope scope, java.lang.String role)
isUserInRole in interface Authentication.Userpublic boolean declaredRolesContains(java.lang.String roleName)
public Authentication logout(javax.servlet.ServletRequest request)
Authentication.LogoutAuthenticationlogout in interface Authentication.LogoutAuthenticationrequest - the requestCopyright © 1995–2023 Webtide. All rights reserved.