Enum jwt_compact_preview::ValidationError [−][src]
pub enum ValidationError { AlgorithmMismatch, MalformedSignature(Error), InvalidSignature, MalformedClaims(Error), MalformedCborClaims(Error), NoClaim, Expired, NotMature, }
Errors that can occur during token validation.
Variants
Algorithm mentioned in the token header differs from invoked one.
MalformedSignature(Error)
Token signature is malformed (e.g., has an incorrect length).
Token signature has failed verification.
MalformedClaims(Error)
Token claims cannot be deserialized from JSON.
MalformedCborClaims(Error)
Token claims cannot be deserialized from CBOR.
Claim requested during validation is not present in the token.
Token has expired.
Token is not yet valid as per nbf
claim.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ValidationError
impl !RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl Unpin for ValidationError
impl !UnwindSafe for ValidationError
impl !UnwindSafe for ValidationError