Package org.eclipse.jetty.security
Class DefaultUserIdentity
java.lang.Object
org.eclipse.jetty.security.DefaultUserIdentity
- All Implemented Interfaces:
UserIdentity
@Deprecated(since="2021-05-27")
public class DefaultUserIdentity
extends Object
implements UserIdentity
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
The default implementation of UserIdentity.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.UserIdentity
UserIdentity.Scope, UserIdentity.UnauthenticatedUserIdentity -
Field Summary
Fields inherited from interface org.eclipse.jetty.server.UserIdentity
UNAUTHENTICATED_IDENTITY -
Constructor Summary
ConstructorsConstructorDescriptionDefaultUserIdentity(Subject subject, Principal userPrincipal, String[] roles) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.booleanisUserInRole(String role, UserIdentity.Scope scope) Deprecated.Check if the user is in a role.toString()Deprecated.
-
Constructor Details
-
DefaultUserIdentity
Deprecated.
-
-
Method Details
-
getSubject
Deprecated.- Specified by:
getSubjectin interfaceUserIdentity- Returns:
- The user subject
-
getUserPrincipal
Deprecated.- Specified by:
getUserPrincipalin interfaceUserIdentity- Returns:
- The user principal
-
isUserInRole
Deprecated.Description copied from interface:UserIdentityCheck if the user is in a role. This call is used to satisfy authorization calls from container code which will be using translated role names.- Specified by:
isUserInRolein interfaceUserIdentity- Parameters:
role- A role name.scope- the scope- Returns:
- True if the user can act in that role.
-
toString
Deprecated.
-