pub enum ValidationAlgo {
RSASha256 {
public_key: RsaPublicKey,
},
EcdsaP256 {
public_key: VerifyingKey,
},
}Available on crate features
rsa or ecdsa only.Expand description
The algorithm used when running in validation mode.
hmac isn’t available, as that doesn’t use asymmetric cryptography.
Variants§
RSASha256
Available on crate feature
rsa only.Validate RSA-signed JWTs.
Fields
§
public_key: RsaPublicKeyThe RSA public key.
EcdsaP256
Available on crate feature
ecdsa only.Validate ecdsa-signed JWTs.
Fields
§
public_key: VerifyingKeyThe ecdsa public key.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValidationAlgo
impl RefUnwindSafe for ValidationAlgo
impl Send for ValidationAlgo
impl Sync for ValidationAlgo
impl Unpin for ValidationAlgo
impl UnwindSafe for ValidationAlgo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more