Interface JWTRoleParser
-
- All Superinterfaces:
SubjectRoleParser
- All Known Implementing Classes:
DefaultJWTRoleParser
public interface JWTRoleParser extends SubjectRoleParser
This interface defines a way to extract roles from a JWT Token
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<Principal>parseRolesFromToken(Principal principal, Subject subject, 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 Detail
-
parseRolesFromToken
Set<Principal> parseRolesFromToken(Principal principal, Subject subject, 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.
-
-