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.