#[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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
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)>
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
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ClaimsVerificationError
impl StructuralPartialEq for ClaimsVerificationError
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.