Class JWTCallerPrincipal
- java.lang.Object
-
- be.atbash.runtime.security.jwt.principal.JWTCallerPrincipal
-
- All Implemented Interfaces:
Principal,org.eclipse.microprofile.jwt.JsonWebToken
- Direct Known Subclasses:
DefaultJWTCallerPrincipal
public abstract class JWTCallerPrincipal extends Object implements org.eclipse.microprofile.jwt.JsonWebToken
An abstract CallerPrincipal implementation that provides access to the JWT claims that are required by the microprofile token.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Collection<String>doGetClaimNames()<T> TgetClaim(String claimName)Set<String>getClaimNames()protected org.eclipse.microprofile.jwt.ClaimsgetClaimType(String claimName)protected abstract ObjectgetClaimValue(String claimName)StringgetName()booleanimplies(Subject subject)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getName
public String getName()
-
getClaimNames
public Set<String> getClaimNames()
- Specified by:
getClaimNamesin interfaceorg.eclipse.microprofile.jwt.JsonWebToken
-
doGetClaimNames
protected abstract Collection<String> doGetClaimNames()
-
getClaim
public <T> T getClaim(String claimName)
- Specified by:
getClaimin interfaceorg.eclipse.microprofile.jwt.JsonWebToken
-
toString
public String toString()
-
getClaimType
protected org.eclipse.microprofile.jwt.Claims getClaimType(String claimName)
-
-