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 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 token
      subject - the JAAS Subject associated with a successful validation of the token
      token - The JWTToken
      Returns:
      the set of User/Principal roles from the token.