#[non_exhaustive]pub enum ClaimsVerificationError {
Expired(String),
InvalidAudience(String),
InvalidAuthContext(String),
InvalidAuthTime(String),
InvalidIssuer(String),
InvalidNonce(String),
InvalidSubject(String),
NoSignature,
Other(String),
SignatureVerification(SignatureVerificationError),
Unsupported(String),
}
Expand description
Error verifying claims.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Expired(String)
Claims have expired.
InvalidAudience(String)
Audience claim is invalid.
InvalidAuthContext(String)
Authorization context class reference (acr
) claim is invalid.
InvalidAuthTime(String)
User authenticated too long ago.
InvalidIssuer(String)
Issuer claim is invalid.
InvalidNonce(String)
Nonce is invalid.
InvalidSubject(String)
Subject claim is invalid.
NoSignature
No signature present but claims must be signed.
Other(String)
An unexpected error occurred.
SignatureVerification(SignatureVerificationError)
Failed to verify the claims signature.
Unsupported(String)
Unsupported argument or value.
Trait Implementations§
Source§impl Clone for ClaimsVerificationError
impl Clone for ClaimsVerificationError
Source§fn clone(&self) -> ClaimsVerificationError
fn clone(&self) -> ClaimsVerificationError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ClaimsVerificationError
impl Debug for ClaimsVerificationError
Source§impl Display for ClaimsVerificationError
impl Display for ClaimsVerificationError
Source§impl Error for ClaimsVerificationError
impl Error for ClaimsVerificationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for ClaimsVerificationError
impl PartialEq for ClaimsVerificationError
Source§fn eq(&self, other: &ClaimsVerificationError) -> bool
fn eq(&self, other: &ClaimsVerificationError) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ClaimsVerificationError
Auto Trait Implementations§
impl Freeze for ClaimsVerificationError
impl RefUnwindSafe for ClaimsVerificationError
impl Send for ClaimsVerificationError
impl Sync for ClaimsVerificationError
impl Unpin for ClaimsVerificationError
impl UnwindSafe for ClaimsVerificationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more