pub enum DecodingKey {
Hmac(Vec<u8>),
Rsa(RsaPublicKey),
}Expand description
All the different kind of keys we can use to decode a JWT This key can be re-used so make sure you only initialize it once if you can for better performance
Variants
Hmac(Vec<u8>)
Rsa(RsaPublicKey)
Implementations
If you’re using HMAC, use this.
If you’re using HMAC with a base64 encoded, use this.
Convenience function for JWKS implementors
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for DecodingKey
impl Send for DecodingKey
impl Sync for DecodingKey
impl Unpin for DecodingKey
impl UnwindSafe for DecodingKey
Blanket Implementations
Mutably borrows from an owned value. Read more