Class TokenValidator.TypeValidator

  • All Implemented Interfaces:
    org.jose4j.jwt.consumer.ErrorCodeValidator
    Enclosing class:
    TokenValidator

    private static class TokenValidator.TypeValidator
    extends Object
    implements org.jose4j.jwt.consumer.ErrorCodeValidator
    • Constructor Detail

      • TypeValidator

        public TypeValidator​(String expectedType)
    • Method Detail

      • validate

        public org.jose4j.jwt.consumer.ErrorCodeValidator.Error validate​(org.jose4j.jwt.consumer.JwtContext jwtContext)
                                                                  throws org.jose4j.jwt.MalformedClaimException
        Specified by:
        validate in interface org.jose4j.jwt.consumer.ErrorCodeValidator
        Throws:
        org.jose4j.jwt.MalformedClaimException