Enum CertificateBuilder.KeyUsage
- All Implemented Interfaces:
Serializable, Comparable<CertificateBuilder.KeyUsage>
- Enclosing class:
CertificateBuilder
These key usages are specified by the X.509 standard, and some of them are deprecated.
See the CertificateBuilder.ExtendedKeyUsage for other commonly used key usage extensions.
See ITU-T X.509 (10/2019) section 9.2.2.3 for the precise meaning of these usages.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis key usage is deprecated by X.509, and commitment may instead be derived from the actual use of the keys.For verifying the Certificate Authority's signature on a Certificate Revocation List.For enciphering user data, but not keys or security information.For use withkeyAgreementto limit the key to deciphering only.For verifying digital signatures, for entity authentication, for entity authentication, or for integrity verification.For use withkeyAgreementto limit the key to enciphering only.For use in public key agreement.For verifying the Certificate Authority's signature on a public-key certificate.For enciphering keys or other security information. -
Method Summary
Modifier and TypeMethodDescriptionstatic CertificateBuilder.KeyUsageReturns the enum constant of this type with the specified name.static CertificateBuilder.KeyUsage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
digitalSignature
For verifying digital signatures, for entity authentication, for entity authentication, or for integrity verification. -
contentCommitment
This key usage is deprecated by X.509, and commitment may instead be derived from the actual use of the keys.For verifying digital signatures that imply the signer has "committed" to the content being signed. This does not imply any specific policy or review on part of the signer, however.
-
keyEncipherment
For enciphering keys or other security information. -
dataEncipherment
For enciphering user data, but not keys or security information. -
keyAgreement
For use in public key agreement. -
keyCertSign
For verifying the Certificate Authority's signature on a public-key certificate.This implies
digitalSignatureandcontentCommitment, so they do not need to be specified separately. -
cRLSign
For verifying the Certificate Authority's signature on a Certificate Revocation List.This implies
digitalSignatureandcontentCommitment, so they do not need to be specified separately. -
encipherOnly
For use withkeyAgreementto limit the key to enciphering only.The meaning of this without the
keyAgreementbit set is unspecified. -
decipherOnly
For use withkeyAgreementto limit the key to deciphering only.The meaning of this without the
keyAgreementbit set is unspecified.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-