pub enum Error {
Show 13 variants JWTError(Option<Box<dyn Error>>), InvalidAlgorithm, InvalidSignature, InvalidClaims, InvalidClaimFormat(Box<dyn Error>), InvalidJWTFormat, InvalidBase64Encoding(Box<dyn Error>), MissingFinalAttenuationKey, InvalidAttenuationKey(Box<dyn Error>), InvalidEnvelopeKey, MissingKey(Option<String>), MalformedAttenuationKeyJWK, InvalidKey,
}
Expand description

An error that may occur during attenuable JWT verification.

Variants

JWTError(Option<Box<dyn Error>>)

An error decoding or validating a JWT’s claims.

InvalidAlgorithm

An error indicating a bad algorithm for the JWT.

InvalidSignature

An error indicating an invalid signature.

InvalidClaims

An error indicating invalid claims.

InvalidClaimFormat(Box<dyn Error>)

An error indicating invalid claim format (e.g. deserialization error).

InvalidJWTFormat

An error indicating invalid JWT format.

InvalidBase64Encoding(Box<dyn Error>)

An error indicating invalid base64 encoding.

MissingFinalAttenuationKey

An error indicating that the final attenuation key in an envelope (the key that should be used to sign the envelope itself) is missing.

InvalidAttenuationKey(Box<dyn Error>)

An invalid attenuation key was encountered somewhere in the JWT chain.

InvalidEnvelopeKey

The envelope key was invalid.

MissingKey(Option<String>)

No key was found for the given key id.

MalformedAttenuationKeyJWK

A JWK representing the public key for one of the attenuation keys in the JWT chain was malformed.

InvalidKey

Invalid key.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

🔬 This is a nightly-only experimental API. (error_generic_member_access)

Provides type based access to context intended for error reports. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.