Struct jsonwebtoken_rustcrypto::jwk::JWKDecodingKeySet
source · [−]pub struct JWKDecodingKeySet { /* private fields */ }Implementations
Fetch a key by key id (KID)
Manually add a key to the keystore
pub fn verify<T: DeserializeOwned>(
&self,
token: &str,
validation: &Validation
) -> Result<TokenData<T>>
pub fn verify<T: DeserializeOwned>(
&self,
token: &str,
validation: &Validation
) -> Result<TokenData<T>>
Verify a JWT token. If the token is valid, it is returned.
A token is considered valid if:
- Is well formed
- Has a
kidfield that matches a public signature `kid - Signature matches public key
- It is not expired
- The
nbfis not set to before now
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for JWKDecodingKeySet
impl Send for JWKDecodingKeySet
impl Sync for JWKDecodingKeySet
impl Unpin for JWKDecodingKeySet
impl UnwindSafe for JWKDecodingKeySet
Blanket Implementations
Mutably borrows from an owned value. Read more