Enum attenuable_jwt::verify::Error
source · [−]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
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !Send for Error
impl !Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more