Class JwtTokenSecurityContext
java.lang.Object
org.apache.cxf.rs.security.jose.jaxrs.JwtTokenSecurityContext
- All Implemented Interfaces:
ClaimsSecurityContext,LoginSecurityContext,SecurityContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Subject representing the current authenticated user.getToken()Returns a set of Principals representing the roles assigned to the current authenticated user PrincipalbooleanisUserInRole(String role)
-
Constructor Details
-
JwtTokenSecurityContext
-
-
Method Details
-
getToken
-
getSubject
Description copied from interface:LoginSecurityContextReturns the Subject representing the current authenticated user.- Specified by:
getSubjectin interfaceLoginSecurityContext- Returns:
- the subject
-
getUserRoles
Description copied from interface:LoginSecurityContextReturns a set of Principals representing the roles assigned to the current authenticated user Principal- Specified by:
getUserRolesin interfaceLoginSecurityContext- Returns:
- the roles
-
getUserPrincipal
- Specified by:
getUserPrincipalin interfaceSecurityContext
-
isUserInRole
- Specified by:
isUserInRolein interfaceSecurityContext
-
getClaims
- Specified by:
getClaimsin interfaceClaimsSecurityContext
-