Class JsonWebTokenImpl

  • All Implemented Interfaces:
    Serializable, Principal, org.eclipse.microprofile.jwt.JsonWebToken

    public class JsonWebTokenImpl
    extends jakarta.security.enterprise.CallerPrincipal
    implements org.eclipse.microprofile.jwt.JsonWebToken
    A default implementation of JsonWebToken.
    Author:
    Arjan Tijms
    See Also:
    Serialized Form
    • Constructor Detail

      • JsonWebTokenImpl

        public JsonWebTokenImpl​(String callerName,
                                Map<String,​jakarta.json.JsonValue> claims)
    • Method Detail

      • getClaims

        public Map<String,​jakarta.json.JsonValue> getClaims()
      • getClaim

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

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