public class DefaultJWTCallerPrincipal extends JWTCallerPrincipal
JwtClaims
Constructor and Description |
---|
DefaultJWTCallerPrincipal(String jwt,
String type,
JwtClaims claimsSet,
String name)
Create the DefaultJWTCallerPrincipal from the parsed JWT token and the extracted principal name
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAudience() |
Object |
getClaim(String claimName) |
Set<String> |
getClaimNames() |
Set<String> |
getGroups() |
boolean |
implies(Subject subject) |
String |
toString() |
String |
toString(boolean showAll)
TODO: showAll is ignored and currently assumed true
|
claim, getName
public DefaultJWTCallerPrincipal(String jwt, String type, JwtClaims claimsSet, String name)
jwt
- - the parsed JWT token representationname
- - the extracted unqiue name to use as the principal name; from "upn", "preferred_username" or "sub" claimpublic boolean implies(Subject subject)
public String toString(boolean showAll)
toString
in class JWTCallerPrincipal
showAll
- - should all claims associated with the JWT be displayed or should only those defined in the
JsonWebToken interface be displayed.Copyright © 2018 JBoss by Red Hat. All rights reserved.