Enum jwt_compact::jwk::KeyType [−][src]
#[non_exhaustive]
pub enum KeyType {
Rsa,
EllipticCurve,
Symmetric,
KeyPair,
}Expand description
Type of a JsonWebKey.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rsa
Public or private RSA key. Corresponds to the RSA value of the kty field for JWKs.
EllipticCurve
Public or private key in an ECDSA crypto system. Corresponds to the EC value
of the kty field for JWKs.
Symmetric
Symmetric key. Corresponds to the oct value of the kty field for JWKs.
KeyPair
Generic asymmetric keypair. Corresponds to the OKP value of the kty field for JWKs.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KeyType
impl UnwindSafe for KeyType
Blanket Implementations
Mutably borrows from an owned value. Read more
