Package org.eclipse.jetty.security
Class AbstractUserAuthentication
- java.lang.Object
-
- org.eclipse.jetty.security.AbstractUserAuthentication
-
- All Implemented Interfaces:
Serializable,org.eclipse.jetty.server.Authentication,org.eclipse.jetty.server.Authentication.User
- Direct Known Subclasses:
SessionAuthentication,UserAuthentication
public abstract class AbstractUserAuthentication extends Object implements org.eclipse.jetty.server.Authentication.User, 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
org.eclipse.jetty.server.Authentication.Challenge, org.eclipse.jetty.server.Authentication.Deferred, org.eclipse.jetty.server.Authentication.Failed, org.eclipse.jetty.server.Authentication.Failure, org.eclipse.jetty.server.Authentication.ResponseSent, org.eclipse.jetty.server.Authentication.SendSuccess, org.eclipse.jetty.server.Authentication.User, org.eclipse.jetty.server.Authentication.Wrapped
-
-
Field Summary
Fields Modifier and Type Field Description protected String_methodprotected org.eclipse.jetty.server.UserIdentity_userIdentity
-
Constructor Summary
Constructors Constructor Description AbstractUserAuthentication(String method, org.eclipse.jetty.server.UserIdentity userIdentity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandeclaredRolesContains(String roleName)StringgetAuthMethod()org.eclipse.jetty.server.UserIdentitygetUserIdentity()booleanisUserInRole(org.eclipse.jetty.server.UserIdentity.Scope scope, String role)
-
-
-
Field Detail
-
_method
protected String _method
-
_userIdentity
protected transient org.eclipse.jetty.server.UserIdentity _userIdentity
-
-
Constructor Detail
-
AbstractUserAuthentication
public AbstractUserAuthentication(String method, org.eclipse.jetty.server.UserIdentity userIdentity)
-
-
Method Detail
-
getAuthMethod
public String getAuthMethod()
- Specified by:
getAuthMethodin interfaceorg.eclipse.jetty.server.Authentication.User
-
getUserIdentity
public org.eclipse.jetty.server.UserIdentity getUserIdentity()
- Specified by:
getUserIdentityin interfaceorg.eclipse.jetty.server.Authentication.User
-
isUserInRole
public boolean isUserInRole(org.eclipse.jetty.server.UserIdentity.Scope scope, String role)- Specified by:
isUserInRolein interfaceorg.eclipse.jetty.server.Authentication.User
-
declaredRolesContains
public boolean declaredRolesContains(String roleName)
-
-