Interface ErrorCodeValidator

All Known Implementing Classes:
AudValidator, ErrorCodeValidatorAdapter, IssValidator, JtiValidator, NumericDateValidator, SubValidator, TypeValidator

public interface ErrorCodeValidator
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    JWT validation error with stable error code and friendly error message
  • Method Summary

    Modifier and Type
    Method
    Description
    validate(JwtContext jwtContext)
    Validate some aspect of the JWT.
  • Method Details

    • validate

      Validate some aspect of the JWT.

      Implementations should use negative values for error codes so as to avoid potential collisions with error code values used by this library, which are defined in ErrorCodes.

      Parameters:
      jwtContext - the JWT context
      Returns:
      a Error object with a stable error code and description of the problem or null, if valid
      Throws:
      MalformedClaimException - if a malformed claim is encountered