Class CertificateKeyUsage

java.lang.Object
com.azure.core.util.ExpandableStringEnum<CertificateKeyUsage>
com.azure.security.keyvault.certificates.models.CertificateKeyUsage
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class CertificateKeyUsage extends com.azure.core.util.ExpandableStringEnum<CertificateKeyUsage>
Supported usages of a certificate key.
  • Field Details

    • DIGITAL_SIGNATURE

      public static final CertificateKeyUsage DIGITAL_SIGNATURE
      Indicates that the certificate key can be used as a digital signature.
    • NON_REPUDIATION

      public static final CertificateKeyUsage NON_REPUDIATION
      Indicates that the certificate key can be used for authentication.
    • KEY_ENCIPHERMENT

      public static final CertificateKeyUsage KEY_ENCIPHERMENT
      Indicates that the certificate key can be used for key encryption.
    • DATA_ENCIPHERMENT

      public static final CertificateKeyUsage DATA_ENCIPHERMENT
      Indicates that the certificate key can be used for data encryption.
    • KEY_AGREEMENT

      public static final CertificateKeyUsage KEY_AGREEMENT
      Indicates that the certificate key can be used to determine key agreement, such as a key created using the Diffie-Hellman key agreement algorithm.
    • KEY_CERT_SIGN

      public static final CertificateKeyUsage KEY_CERT_SIGN
      Indicates that the certificate key can be used to sign certificates.
    • CRL_SIGN

      public static final CertificateKeyUsage CRL_SIGN
      Indicates that the certificate key can be used to sign a certificate revocation list.
    • ENCIPHER_ONLY

      public static final CertificateKeyUsage ENCIPHER_ONLY
      Indicates that the certificate key can be used for encryption only.
    • DECIPHER_ONLY

      public static final CertificateKeyUsage DECIPHER_ONLY
      Indicates that the certificate key can be used for decryption only.
  • Constructor Details

    • CertificateKeyUsage

      @Deprecated public CertificateKeyUsage()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of CertificateKeyUsage value.
  • Method Details

    • fromString

      public static CertificateKeyUsage fromString(String name)
      Creates or finds a CertificateKeyUsage from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding CertificateKeyUsage.
    • values

      public static Collection<CertificateKeyUsage> values()
      Gets known CertificateKeyUsage values.
      Returns:
      known CertificateKeyUsage values.