[−][src]Struct aliri_jose::jwt::JwtRef
Reference to a JSON Web Token
Implementations
impl JwtRef
[src]
pub fn decompose<H>(&self) -> Result<Decomposed<'_, H>, JwtVerifyError> where
H: for<'de> Deserialize<'de>,
[src]
H: for<'de> Deserialize<'de>,
Decomposes the JWT into its parts, preparing it for later processing.
pub fn verify<C, H, V>(
&self,
key: &V,
validator: &CoreValidator
) -> Result<Validated<C, H>, JwtVerifyError> where
C: for<'de> Deserialize<'de>,
H: 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>,
H: for<'de> Deserialize<'de>,
V: Verifier<Algorithm = Algorithm>,
JwtVerifyError: From<V::Error>,
Verifies a token against a particular JWK and validation plan
If you need to inspect the token first to determine how to verify
the token, use decompose()
to peek into the JWT.
pub fn verify_with_custom<C, H, V, X>(
&self,
key: &V,
validator: &CoreValidator,
custom: X
) -> Result<Validated<C, H>, JwtVerifyError> where
C: for<'de> Deserialize<'de>,
H: 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>,
H: for<'de> Deserialize<'de>,
V: Verifier<Algorithm = Algorithm>,
JwtVerifyError: From<V::Error>,
X: ClaimsValidator<C, H>,
Verifies a token against a particular JWK and validation plan
If you need to inspect the token first to determine how to verify
the token, use decompose()
to peek into the JWT.
impl JwtRef
[src]
pub fn from_str(raw: &str) -> &Self
[src]
Transparently reinterprets the string slice as a strongly-typed value.
pub const fn as_str(&self) -> &str
[src]
Provides access to the underlying value as a string slice.
Trait Implementations
impl AsRef<JwtRef> for Jwt
[src]
impl AsRef<JwtRef> for JwtRef
[src]
impl Borrow<JwtRef> for Jwt
[src]
impl Debug for JwtRef
[src]
impl<'de: 'a, 'a> Deserialize<'de> for &'a JwtRef
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
impl<'a> Display for &'a JwtRef
[src]
impl Eq for JwtRef
[src]
impl<'_> From<&'_ JwtRef> for Jwt
[src]
impl Hash for JwtRef
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,