Package org.eclipse.jetty.security
Class AbstractUserAuthentication
- java.lang.Object
-
- org.eclipse.jetty.security.AbstractUserAuthentication
-
- All Implemented Interfaces:
java.io.Serializable
,Authentication
,Authentication.LogoutAuthentication
,Authentication.User
- Direct Known Subclasses:
SessionAuthentication
,UserAuthentication
public abstract class AbstractUserAuthentication extends java.lang.Object implements Authentication.User, java.io.Serializable
AbstractUserAuthentication Base class for representing an authenticated user.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.Authentication
Authentication.Challenge, Authentication.Deferred, Authentication.Failed, Authentication.Failure, Authentication.LoginAuthentication, Authentication.LogoutAuthentication, Authentication.NonAuthenticated, Authentication.ResponseSent, Authentication.SendSuccess, Authentication.User, Authentication.Wrapped
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
_method
protected UserIdentity
_userIdentity
-
Fields inherited from interface org.eclipse.jetty.server.Authentication
NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED
-
-
Constructor Summary
Constructors Constructor Description AbstractUserAuthentication(java.lang.String method, UserIdentity userIdentity)
-
Method Summary
All Methods Instance Methods Concrete Methods 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)
Authentication
logout(javax.servlet.ServletRequest request)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.server.Authentication.User
logout
-
-
-
-
Field Detail
-
_method
protected java.lang.String _method
-
_userIdentity
protected transient UserIdentity _userIdentity
-
-
Constructor Detail
-
AbstractUserAuthentication
public AbstractUserAuthentication(java.lang.String method, UserIdentity userIdentity)
-
-
Method Detail
-
getAuthMethod
public java.lang.String getAuthMethod()
- Specified by:
getAuthMethod
in interfaceAuthentication.User
-
getUserIdentity
public UserIdentity getUserIdentity()
- Specified by:
getUserIdentity
in interfaceAuthentication.User
-
isUserInRole
public boolean isUserInRole(UserIdentity.Scope scope, java.lang.String role)
- Specified by:
isUserInRole
in interfaceAuthentication.User
-
declaredRolesContains
public boolean declaredRolesContains(java.lang.String roleName)
-
logout
public Authentication logout(javax.servlet.ServletRequest request)
- Specified by:
logout
in interfaceAuthentication.LogoutAuthentication
-
-