java.io.Serializable
, Authentication
, Authentication.User
SessionAuthentication
, UserAuthentication
public abstract class AbstractUserAuthentication extends java.lang.Object implements Authentication.User, java.io.Serializable
Authentication.Challenge, Authentication.Deferred, Authentication.Failed, Authentication.Failure, Authentication.ResponseSent, Authentication.SendSuccess, Authentication.User, Authentication.Wrapped
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.String |
_method |
|
protected UserIdentity |
_userIdentity |
NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED
Constructor | Description |
---|---|
AbstractUserAuthentication(java.lang.String method,
UserIdentity userIdentity) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
declaredRolesContains(java.lang.String roleName) |
|
java.lang.String |
getAuthMethod() |
|
UserIdentity |
getUserIdentity() |
|
boolean |
isUserInRole(UserIdentity.Scope scope,
java.lang.String role) |
logout
protected 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.User
public UserIdentity getUserIdentity()
getUserIdentity
in interface Authentication.User
public boolean isUserInRole(UserIdentity.Scope scope, java.lang.String role)
isUserInRole
in interface Authentication.User
public boolean declaredRolesContains(java.lang.String roleName)
Copyright © 1995–2018 Webtide. All rights reserved.