public interface JWTRoleParser extends SubjectRoleParser
Modifier and Type | Method and Description |
---|---|
Set<Principal> |
parseRolesFromToken(Principal principal,
Subject subject,
JwtToken token)
Return the set of User/Principal roles from the token.
|
parseRolesFromSubject
Set<Principal> parseRolesFromToken(Principal principal, Subject subject, JwtToken token)
principal
- the Principal associated with the tokensubject
- the JAAS Subject associated with a successful validation of the tokentoken
- The JWTTokenCopyright © 2017 JBoss by Red Hat. All rights reserved.