[−][src]Struct aliri_jose::jwt::Decomposed
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]
H: for<'de> Deserialize<'de>,
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]
self,
key: &V,
validator: &CoreValidator
) -> Result<Validated<C, H>, JwtVerifyError> where
C: for<'de> Deserialize<'de>,
V: Verifier<Algorithm = Algorithm>,
JwtVerifyError: From<V::Error>,
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]
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>,
Verifies the decomposed JWT against the given JWK and validation plan
Trait Implementations
impl<'a, H: Clone> Clone for Decomposed<'a, H>
[src]
fn clone(&self) -> Decomposed<'a, H>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn eq(&self, other: &Decomposed<'a, H>) -> bool
[src]
fn ne(&self, other: &Decomposed<'a, H>) -> bool
[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,
H: RefUnwindSafe,
impl<'a, H> Send for Decomposed<'a, H> where
H: Send,
H: Send,
impl<'a, H> Sync for Decomposed<'a, H> where
H: Sync,
H: Sync,
impl<'a, H> Unpin for Decomposed<'a, H> where
H: Unpin,
H: Unpin,
impl<'a, H> UnwindSafe for Decomposed<'a, H> where
H: UnwindSafe,
H: UnwindSafe,
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,