public static enum CertificateBuilder.KeyUsage extends Enum<CertificateBuilder.KeyUsage>
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 and Description |
|---|
contentCommitment
This key usage is deprecated by X.509, and commitment may instead be derived from the actual use of the keys.
|
cRLSign
For verifying the Certificate Authority's signature on a Certificate Revocation List.
|
dataEncipherment
For enciphering user data, but not keys or security information.
|
decipherOnly
For use with
keyAgreement to limit the key to deciphering only. |
digitalSignature
For verifying digital signatures, for entity authentication,
for entity authentication, or for integrity verification.
|
encipherOnly
For use with
keyAgreement to limit the key to enciphering only. |
keyAgreement
For use in public key agreement.
|
keyCertSign
For verifying the Certificate Authority's signature on a public-key certificate.
|
keyEncipherment
For enciphering keys or other security information.
|
| Modifier and Type | Method and Description |
|---|---|
static CertificateBuilder.KeyUsage |
valueOf(String name)
Returns 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.
|
public static final CertificateBuilder.KeyUsage digitalSignature
public static final CertificateBuilder.KeyUsage contentCommitment
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.
public static final CertificateBuilder.KeyUsage keyEncipherment
public static final CertificateBuilder.KeyUsage dataEncipherment
public static final CertificateBuilder.KeyUsage keyAgreement
public static final CertificateBuilder.KeyUsage keyCertSign
This implies digitalSignature and contentCommitment, so they do not need to be specified
separately.
public static final CertificateBuilder.KeyUsage cRLSign
This implies digitalSignature and contentCommitment, so they do not need to be specified
separately.
public static final CertificateBuilder.KeyUsage encipherOnly
keyAgreement to limit the key to enciphering only.
The meaning of this without the keyAgreement bit set is unspecified.
public static final CertificateBuilder.KeyUsage decipherOnly
keyAgreement to limit the key to deciphering only.
The meaning of this without the keyAgreement bit set is unspecified.
public static CertificateBuilder.KeyUsage[] values()
for (CertificateBuilder.KeyUsage c : CertificateBuilder.KeyUsage.values()) System.out.println(c);
public static CertificateBuilder.KeyUsage valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2008–2024 The Netty Project. All rights reserved.