[][src]Enum aliri_jose::error::JwkVerifyError

pub enum JwkVerifyError {
    IncompatibleAlgorithm(IncompatibleAlgorithm),
    JwkUsageMismatch(JwkUsageMismatch),
    SignatureMismatch(SignatureMismatch),
    Unexpected(Unexpected),
}

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]

impl From<IncompatibleAlgorithm> for JwkVerifyError[src]

impl From<JwkUsageMismatch> for JwkVerifyError[src]

impl From<JwkVerifyError> for JwtVerifyError[src]

impl From<SignatureMismatch> for JwkVerifyError[src]

impl From<Unexpected> for JwkVerifyError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.