redfish_codegen/models/certificate/
key_usage.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The usages of a key contained within a certificate.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6pub enum KeyUsage {
7    /// Verifies digital signatures, other than signatures on certificates and CRLs.
8    DigitalSignature,
9    /// Verifies digital signatures, other than signatures on certificates and CRLs, and provides a non-repudiation service that protects against the signing entity falsely denying some action.
10    NonRepudiation,
11    /// Enciphers private or secret keys.
12    KeyEncipherment,
13    /// Directly enciphers raw user data without an intermediate symmetric cipher.
14    DataEncipherment,
15    /// Key agreement.
16    KeyAgreement,
17    /// Verifies signatures on public key certificates.
18    KeyCertSign,
19    /// Verifies signatures on certificate revocation lists (CRLs).
20    CRLSigning,
21    /// Enciphers data while performing a key agreement.
22    EncipherOnly,
23    /// Deciphers data while performing a key agreement.
24    DecipherOnly,
25    /// TLS WWW server authentication.
26    ServerAuthentication,
27    /// TLS WWW client authentication.
28    ClientAuthentication,
29    /// Signs downloadable executable code.
30    CodeSigning,
31    /// Email protection.
32    EmailProtection,
33    /// Binds the hash of an object to a time.
34    Timestamping,
35    /// Signs OCSP responses.
36    OCSPSigning,
37}
38
39#[allow(clippy::derivable_impls)]
40impl Default for KeyUsage {
41     fn default() -> KeyUsage {
42        KeyUsage::DigitalSignature
43     }
44}
45
46impl crate::Metadata<'static> for KeyUsage {
47    const JSON_SCHEMA: &'static str = "Certificate.json";
48}