Class JwtValidationResult

java.lang.Object
com.revetsec.jose.JwtValidationResult
Direct Known Subclasses:
JwtValidationResult.Rejected, JwtValidationResult.Succeeded

The outcome of JWT validation. Remote key-source failures remain exceptions.

Applications receive these outcomes from the corresponding operation; they cannot construct them. Value accessors exist only on the variant that owns a value. Diagnostic text contains no input or result data. A later release may add variants; consuming switches should include a rejecting default branch.

Since:
1.0.0
Author:
Mark Allen
  • Method Details

    • toString

      public final @NonNull String toString()
      Returns the outcome kind with all values redacted.
      Overrides:
      toString in class Object
      Returns:
      redacted description
      Since:
      1.0.0