Class OpenIdUserIdentity
java.lang.Object
org.eclipse.jetty.security.openid.OpenIdUserIdentity
- All Implemented Interfaces:
UserIdentity
-
Nested Class Summary
Nested classes/interfaces inherited from interface UserIdentity
UserIdentity.Scope, UserIdentity.UnauthenticatedUserIdentity -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Subjectprivate final UserIdentityprivate final PrincipalFields inherited from interface UserIdentity
UNAUTHENTICATED_IDENTITY -
Constructor Summary
ConstructorsConstructorDescriptionOpenIdUserIdentity(Subject subject, Principal userPrincipal, UserIdentity userIdentity) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisUserInRole(String role, UserIdentity.Scope scope) Check if the user is in a role.
-
Field Details
-
subject
-
userPrincipal
-
userIdentity
-
-
Constructor Details
-
OpenIdUserIdentity
-
-
Method Details
-
getSubject
- Specified by:
getSubjectin interfaceUserIdentity- Returns:
- The user subject
-
getUserPrincipal
- Specified by:
getUserPrincipalin interfaceUserIdentity- Returns:
- The user principal
-
isUserInRole
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.
-