Interface JWTRoleParser
- All Superinterfaces:
SubjectRoleParser
- All Known Implementing Classes:
DefaultJWTRoleParser
This interface defines a way to extract roles from a JWT Token
-
Method Summary
Modifier and TypeMethodDescriptionparseRolesFromToken(Principal principal, Subject subject, org.apache.cxf.rs.security.jose.jwt.JwtToken token) Return the set of User/Principal roles from the token.Methods inherited from interface org.apache.cxf.sts.token.validator.SubjectRoleParser
parseRolesFromSubject
-
Method Details
-
parseRolesFromToken
Set<Principal> parseRolesFromToken(Principal principal, Subject subject, org.apache.cxf.rs.security.jose.jwt.JwtToken token) Return the set of User/Principal roles from the token.- Parameters:
principal- the Principal associated with the tokensubject- the JAAS Subject associated with a successful validation of the tokentoken- The JWTToken- Returns:
- the set of User/Principal roles from the token.
-