Package org.eclipse.jetty.security
Class AbstractUserAuthentication
- java.lang.Object
-
- org.eclipse.jetty.security.AbstractUserAuthentication
-
- All Implemented Interfaces:
Serializable
,Authentication
,Authentication.LogoutAuthentication
,Authentication.User
- Direct Known Subclasses:
UserAuthentication
@Deprecated(since="2021-05-27") public abstract class AbstractUserAuthentication extends Object implements Authentication.User, Serializable
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.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 inherited from interface org.eclipse.jetty.server.Authentication
NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED
-
-
Constructor Summary
Constructors Constructor Description AbstractUserAuthentication(String method, UserIdentity userIdentity)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
declaredRolesContains(String roleName)
Deprecated.String
getAuthMethod()
Deprecated.UserIdentity
getUserIdentity()
Deprecated.boolean
isUserInRole(UserIdentity.Scope scope, String role)
Deprecated.Authentication
logout(ServletRequest request)
Deprecated.Remove any user information that may be present in the request such that a call to getUserPrincipal/getRemoteUser will return null.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.server.Authentication.User
logout
-
-
-
-
Constructor Detail
-
AbstractUserAuthentication
public AbstractUserAuthentication(String method, UserIdentity userIdentity)
Deprecated.
-
-
Method Detail
-
getAuthMethod
public String getAuthMethod()
Deprecated.- Specified by:
getAuthMethod
in interfaceAuthentication.User
-
getUserIdentity
public UserIdentity getUserIdentity()
Deprecated.- Specified by:
getUserIdentity
in interfaceAuthentication.User
-
isUserInRole
public boolean isUserInRole(UserIdentity.Scope scope, String role)
Deprecated.- Specified by:
isUserInRole
in interfaceAuthentication.User
-
declaredRolesContains
public boolean declaredRolesContains(String roleName)
Deprecated.
-
logout
public Authentication logout(ServletRequest request)
Deprecated.Description copied from interface:Authentication.LogoutAuthentication
Remove any user information that may be present in the request such that a call to getUserPrincipal/getRemoteUser will return null.- Specified by:
logout
in interfaceAuthentication.LogoutAuthentication
- Parameters:
request
- the request- Returns:
- NoAuthentication if we successfully logged out
-
-