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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ValidationAlgo
impl Send for ValidationAlgo
impl Sync for ValidationAlgo
impl Unpin for ValidationAlgo
impl UnwindSafe for ValidationAlgo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more