Class 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 Detail

      • getName

        public String getName()
        Specified by:
        getName in interface org.eclipse.microprofile.jwt.JsonWebToken
        Specified by:
        getName in interface Principal
      • getClaimNames

        public Set<String> getClaimNames()
        Specified by:
        getClaimNames in interface org.eclipse.microprofile.jwt.JsonWebToken
      • getClaim

        public <T> T getClaim​(String claimName)
        Specified by:
        getClaim in interface org.eclipse.microprofile.jwt.JsonWebToken
      • getClaimValue

        protected abstract Object getClaimValue​(String claimName)
      • getClaimType

        protected org.eclipse.microprofile.jwt.Claims getClaimType​(String claimName)