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 Summary
FieldsModifier and TypeFieldDescriptionstatic final CertificateKeyUsage
Indicates that the certificate key can be used to sign a certificate revocation list.static final CertificateKeyUsage
Indicates that the certificate key can be used for data encryption.static final CertificateKeyUsage
Indicates that the certificate key can be used for decryption only.static final CertificateKeyUsage
Indicates that the certificate key can be used as a digital signature.static final CertificateKeyUsage
Indicates that the certificate key can be used for encryption only.static final CertificateKeyUsage
Indicates that the certificate key can be used to determine key agreement, such as a key created using the Diffie-Hellman key agreement algorithm.static final CertificateKeyUsage
Indicates that the certificate key can be used to sign certificates.static final CertificateKeyUsage
Indicates that the certificate key can be used for key encryption.static final CertificateKeyUsage
Indicates that the certificate key can be used for authentication. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CertificateKeyUsage
fromString
(String name) Creates or finds a CertificateKeyUsage from its string representation.static Collection
<CertificateKeyUsage> values()
Gets known CertificateKeyUsage values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
DIGITAL_SIGNATURE
Indicates that the certificate key can be used as a digital signature. -
NON_REPUDIATION
Indicates that the certificate key can be used for authentication. -
KEY_ENCIPHERMENT
Indicates that the certificate key can be used for key encryption. -
DATA_ENCIPHERMENT
Indicates that the certificate key can be used for data encryption. -
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
Indicates that the certificate key can be used to sign certificates. -
CRL_SIGN
Indicates that the certificate key can be used to sign a certificate revocation list. -
ENCIPHER_ONLY
Indicates that the certificate key can be used for encryption only. -
DECIPHER_ONLY
Indicates that the certificate key can be used for decryption only.
-
-
Constructor Details
-
CertificateKeyUsage
Deprecated.Use thefromString(String)
factory method.Creates a new instance of CertificateKeyUsage value.
-
-
Method Details
-
fromString
Creates or finds a CertificateKeyUsage from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding CertificateKeyUsage.
-
values
Gets known CertificateKeyUsage values.- Returns:
- known CertificateKeyUsage values.
-
fromString(String)
factory method.