Package org.eclipse.jetty.security
Class SpnegoUserIdentity
- java.lang.Object
-
- org.eclipse.jetty.security.SpnegoUserIdentity
-
- All Implemented Interfaces:
UserIdentity
@Deprecated(since="2021-05-27") public class SpnegoUserIdentity extends Object implements UserIdentity
Deprecated.
-
-
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
Constructors Constructor Description SpnegoUserIdentity(Subject subject, Principal principal, UserIdentity roleDelegate)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Subject
getSubject()
Deprecated.Principal
getUserPrincipal()
Deprecated.boolean
isEstablished()
Deprecated.boolean
isUserInRole(String role, UserIdentity.Scope scope)
Deprecated.Check if the user is in a role.
-
-
-
Constructor Detail
-
SpnegoUserIdentity
public SpnegoUserIdentity(Subject subject, Principal principal, UserIdentity roleDelegate)
Deprecated.
-
-
Method Detail
-
getSubject
public Subject getSubject()
Deprecated.- Specified by:
getSubject
in interfaceUserIdentity
- Returns:
- The user subject
-
getUserPrincipal
public Principal getUserPrincipal()
Deprecated.- Specified by:
getUserPrincipal
in interfaceUserIdentity
- Returns:
- The user principal
-
isUserInRole
public boolean isUserInRole(String role, UserIdentity.Scope scope)
Deprecated.Description copied from interface:UserIdentity
Check 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:
isUserInRole
in interfaceUserIdentity
- Parameters:
role
- A role name.scope
- the scope- Returns:
- True if the user can act in that role.
-
isEstablished
public boolean isEstablished()
Deprecated.
-
-