public class DefaultJWTCallerPrincipal extends JWTCallerPrincipal
JwtClaims
Constructor and Description |
---|
DefaultJWTCallerPrincipal(org.jose4j.jwt.JwtClaims claimsSet) |
DefaultJWTCallerPrincipal(String tokenType,
org.jose4j.jwt.JwtClaims claimsSet) |
DefaultJWTCallerPrincipal(String rawToken,
String tokenType,
org.jose4j.jwt.JwtClaims claimsSet)
Create the DefaultJWTCallerPrincipal from the parsed JWT token and the extracted principal name
|
Modifier and Type | Method and Description |
---|---|
protected Collection<String> |
doGetClaimNames() |
protected Set<String> |
filterCustomClaimNames(Collection<String> claimNames)
Determine the custom claims in the set
|
Set<String> |
getAudience() |
protected Object |
getClaimValue(String claimName) |
Set<String> |
getGroups() |
protected static String |
getRawToken(org.jose4j.jwt.JwtClaims claimsSet) |
protected void |
replaceClaimValueWithJsonValue(String name) |
getClaim, getClaimNames, getClaimType, getName, implies, toString, toString, wrapClaimValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public DefaultJWTCallerPrincipal(String rawToken, String tokenType, org.jose4j.jwt.JwtClaims claimsSet)
rawToken
- - raw token valuetokenType
- - token typeclaimsSet
- - Jose4J claims setpublic DefaultJWTCallerPrincipal(String tokenType, org.jose4j.jwt.JwtClaims claimsSet)
public DefaultJWTCallerPrincipal(org.jose4j.jwt.JwtClaims claimsSet)
protected static String getRawToken(org.jose4j.jwt.JwtClaims claimsSet)
protected Collection<String> doGetClaimNames()
doGetClaimNames
in class JWTCallerPrincipal
protected Object getClaimValue(String claimName)
getClaimValue
in class JWTCallerPrincipal
protected Set<String> filterCustomClaimNames(Collection<String> claimNames)
claimNames
- - the current set of claim names in this tokenprotected void replaceClaimValueWithJsonValue(String name)
Copyright © 2018–2021. All rights reserved.