#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum KeyUsage {
DigitalSignature,
NonRepudiation,
KeyEncipherment,
DataEncipherment,
KeyAgreement,
KeyCertSign,
CRLSigning,
EncipherOnly,
DecipherOnly,
ServerAuthentication,
ClientAuthentication,
CodeSigning,
EmailProtection,
Timestamping,
OCSPSigning,
}
#[allow(clippy::derivable_impls)]
impl Default for KeyUsage {
fn default() -> KeyUsage {
KeyUsage::DigitalSignature
}
}
impl crate::Metadata<'static> for KeyUsage {
const JSON_SCHEMA: &'static str = "Certificate.json";
}