Package org.eclipse.jetty.server
Interface UserIdentity
- 
- All Known Subinterfaces:
 UserIdentity.UnauthenticatedUserIdentity
- All Known Implementing Classes:
 DefaultUserIdentity,SpnegoUserIdentity
@Deprecated(since="2021-05-27") public interface UserIdentityDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.User object that encapsulates user identity and operations such as run-as-role actions, checking isUserInRole and getUserPrincipal.Implementations of UserIdentity should be immutable so that they may be cached by Authenticators and LoginServices.
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceUserIdentity.ScopeDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interfaceUserIdentity.UnauthenticatedUserIdentityDeprecated. 
- 
Field Summary
Fields Modifier and Type Field Description static UserIdentityUNAUTHENTICATED_IDENTITYDeprecated. 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description javax.security.auth.SubjectgetSubject()Deprecated.java.security.PrincipalgetUserPrincipal()Deprecated.booleanisUserInRole(java.lang.String role, UserIdentity.Scope scope)Deprecated.Check if the user is in a role. 
 - 
 
- 
- 
Field Detail
- 
UNAUTHENTICATED_IDENTITY
static final UserIdentity UNAUTHENTICATED_IDENTITY
Deprecated. 
 - 
 
- 
Method Detail
- 
getSubject
javax.security.auth.Subject getSubject()
Deprecated.- Returns:
 - The user subject
 
 
- 
getUserPrincipal
java.security.Principal getUserPrincipal()
Deprecated.- Returns:
 - The user principal
 
 
- 
isUserInRole
boolean isUserInRole(java.lang.String role, UserIdentity.Scope scope)Deprecated.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.- Parameters:
 role- A role name.scope- the scope- Returns:
 - True if the user can act in that role.
 
 
 - 
 
 -