Class DefaultJWTCallerPrincipal
- java.lang.Object
-
- be.atbash.runtime.security.jwt.principal.JWTCallerPrincipal
-
- be.atbash.runtime.security.jwt.principal.DefaultJWTCallerPrincipal
-
- All Implemented Interfaces:
Principal,org.eclipse.microprofile.jwt.JsonWebToken
public class DefaultJWTCallerPrincipal extends JWTCallerPrincipal
A default implementation of JWTCallerPrincipal that wraps the jose4j JwtClaims.- See Also:
JWTClaimsSet
-
-
Constructor Summary
Constructors Constructor Description DefaultJWTCallerPrincipal(String rawToken, be.atbash.ee.security.octopus.nimbus.jwt.JWTClaimsSet claimsSet, JWTAuthContextInfo authContextInfo)Create the DefaultJWTCallerPrincipal from the parsed JWT token and the extracted principal name
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<String>doGetClaimNames()Set<String>getAudience()protected ObjectgetClaimValue(String claimName)Set<String>getGroups()-
Methods inherited from class be.atbash.runtime.security.jwt.principal.JWTCallerPrincipal
getClaim, getClaimNames, getClaimType, getName, implies, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
DefaultJWTCallerPrincipal
public DefaultJWTCallerPrincipal(String rawToken, be.atbash.ee.security.octopus.nimbus.jwt.JWTClaimsSet claimsSet, JWTAuthContextInfo authContextInfo)
Create the DefaultJWTCallerPrincipal from the parsed JWT token and the extracted principal name- Parameters:
rawToken- - raw token valueclaimsSet- - JWT claims setauthContextInfo- - The Context information
-
-
Method Detail
-
doGetClaimNames
protected Collection<String> doGetClaimNames()
- Specified by:
doGetClaimNamesin classJWTCallerPrincipal
-
getClaimValue
protected Object getClaimValue(String claimName)
- Specified by:
getClaimValuein classJWTCallerPrincipal
-
-