Class JwtValidationResult
java.lang.Object
com.revetsec.jose.JwtValidationResult
- Direct Known Subclasses:
JwtValidationResult.Rejected, JwtValidationResult.Succeeded
@Immutable
public abstract sealed class JwtValidationResult
extends Object
permits JwtValidationResult.Succeeded, JwtValidationResult.Rejected
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe input was rejected; this variant contains only a fixed reason.static final classA JWT passed all configured signature, header and claims checks. -
Method Summary
-
Method Details
-
toString
-