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, setRoleClassifierType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parseRolesFromSubject
public Set<Principal> parseRolesFromToken(Principal principal, Subject subject, JwtToken token)
parseRolesFromToken
in interface JWTRoleParser
principal
- 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)
Copyright © 2021 JBoss by Red Hat. All rights reserved.