public class DefaultJWTRoleParser extends DefaultSubjectRoleParser implements JWTRoleParser
| Constructor and Description |
|---|
DefaultJWTRoleParser() |
| Modifier and Type | Method and Description |
|---|---|
String |
getRoleClaim() |
boolean |
isUseJaasSubject() |
Set<Principal> |
parseRolesFromToken(Principal principal,
Subject subject,
JwtToken token)
Return the set of User/Principal roles from the token.
|
void |
setRoleClaim(String roleClaim) |
void |
setUseJaasSubject(boolean useJaasSubject)
Whether to get roles from the JAAS Subject (if not null) returned from SAML Assertion
Validation or not.
|
getRoleClassifier, getRoleClassifierType, parseRolesFromSubject, setRoleClassifier, setRoleClassifierTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparseRolesFromSubjectpublic Set<Principal> parseRolesFromToken(Principal principal, Subject subject, JwtToken token)
parseRolesFromToken in interface JWTRoleParserprincipal - the Principal associated with the tokensubject - the JAAS Subject associated with a successful validation of the tokentoken - The JWTTokenpublic boolean isUseJaasSubject()
public void setUseJaasSubject(boolean useJaasSubject)
useJaasSubject - whether to get roles from the JAAS Subject or notpublic String getRoleClaim()
public void setRoleClaim(String roleClaim)
Apache CXF