[−][src]Enum aliri_jose::error::JwkVerifyError
An error occurring while verifying a signature with a JWK
Variants
IncompatibleAlgorithm(IncompatibleAlgorithm)
JWT cannot be used with this algorithm
JwkUsageMismatch(JwkUsageMismatch)
JWK cannot be used for signature verification
SignatureMismatch(SignatureMismatch)
Signature is invalid
Unexpected(Unexpected)
An unexpected error
Implementations
impl JwkVerifyError
[src]
pub fn is_incompatible_alg(&self) -> bool
[src]
Whether the error is due to an incompatible algorithm
pub fn is_usage_mismatch(&self) -> bool
[src]
Whether the error is due to a usage mismatch
pub fn is_signature_mismatch(&self) -> bool
[src]
Whether the error is due to a signature mismatch
Trait Implementations
impl Debug for JwkVerifyError
[src]
impl Display for JwkVerifyError
[src]
impl Error for JwkVerifyError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<IncompatibleAlgorithm> for JwkVerifyError
[src]
fn from(source: IncompatibleAlgorithm) -> Self
[src]
impl From<JwkUsageMismatch> for JwkVerifyError
[src]
fn from(source: JwkUsageMismatch) -> Self
[src]
impl From<JwkVerifyError> for JwtVerifyError
[src]
fn from(source: JwkVerifyError) -> Self
[src]
impl From<SignatureMismatch> for JwkVerifyError
[src]
fn from(source: SignatureMismatch) -> Self
[src]
impl From<Unexpected> for JwkVerifyError
[src]
fn from(source: Unexpected) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for JwkVerifyError
impl Send for JwkVerifyError
impl Sync for JwkVerifyError
impl Unpin for JwkVerifyError
impl !UnwindSafe for JwkVerifyError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,