[][src]Struct aliri_jose::jwt::Decomposed

pub struct Decomposed<'a, H = Empty> { /* fields omitted */ }

A decomposed JWT header

This structure is suitable for inspection to determine which key should be used to validate the JWT.

Implementations

impl<'a, H> Decomposed<'a, H> where
    H: for<'de> Deserialize<'de>, 
[src]

pub fn verify<C, V>(
    self,
    key: &V,
    validator: &CoreValidator
) -> Result<Validated<C, H>, JwtVerifyError> where
    C: for<'de> Deserialize<'de>,
    V: Verifier<Algorithm = Algorithm>,
    JwtVerifyError: From<V::Error>, 
[src]

Verifies the decomposed JWT against the given JWK and validation plan

pub fn verify_with_custom<C, V, X>(
    self,
    key: &V,
    validator: &CoreValidator,
    custom: X
) -> Result<Validated<C, H>, JwtVerifyError> where
    C: for<'de> Deserialize<'de>,
    V: Verifier<Algorithm = Algorithm>,
    JwtVerifyError: From<V::Error>,
    X: ClaimsValidator<C, H>, 
[src]

Verifies the decomposed JWT against the given JWK and validation plan

Trait Implementations

impl<'a, H: Clone> Clone for Decomposed<'a, H>[src]

impl<'a, H> CoreHeaders for Decomposed<'a, H>[src]

impl<'a, H: Debug> Debug for Decomposed<'a, H>[src]

impl<'a, H: Eq> Eq for Decomposed<'a, H>[src]

impl<'a, H> HasAlgorithm for Decomposed<'a, H>[src]

impl<'a, H: PartialEq> PartialEq<Decomposed<'a, H>> for Decomposed<'a, H>[src]

impl<'a, H> StructuralEq for Decomposed<'a, H>[src]

impl<'a, H> StructuralPartialEq for Decomposed<'a, H>[src]

Auto Trait Implementations

impl<'a, H> RefUnwindSafe for Decomposed<'a, H> where
    H: RefUnwindSafe

impl<'a, H> Send for Decomposed<'a, H> where
    H: Send

impl<'a, H> Sync for Decomposed<'a, H> where
    H: Sync

impl<'a, H> Unpin for Decomposed<'a, H> where
    H: Unpin

impl<'a, H> UnwindSafe for Decomposed<'a, H> where
    H: UnwindSafe

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.