Enum kvarn_auth::ValidationAlgo
source · 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
Fields
§
public_key: RsaPublicKey
The RSA public key.
Available on crate feature
rsa
only.Validate RSA-signed JWTs.
EcdsaP256
Fields
§
public_key: VerifyingKey
The ecdsa public key.
Available on crate feature
ecdsa
only.Validate ecdsa-signed JWTs.