Package org.forgerock.opendj.security
Enum X509CertificateBuilder.KeyUsage
- java.lang.Object
-
- java.lang.Enum<X509CertificateBuilder.KeyUsage>
-
- org.forgerock.opendj.security.X509CertificateBuilder.KeyUsage
-
- All Implemented Interfaces:
Serializable
,Comparable<X509CertificateBuilder.KeyUsage>
- Enclosing class:
- X509CertificateBuilder
public static enum X509CertificateBuilder.KeyUsage extends Enum<X509CertificateBuilder.KeyUsage>
An enumeration of key usages. The items are written in the same order as they should appear in the bitstring.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CRL_SIGN
Verify signatures on certificate revocation lists.DATA_ENCIPHERMENT
Direct enciphering of raw user data without the use of an intermediate symmetric cipher.DECIPHER_ONLY
Indicates that the key may be used only for deciphering data while performing key agreement.DIGITAL_SIGNATURE
Verify digital signatures other than signatures on certificates and certificate revocation lists.ENCIPHER_ONLY
Indicates that the key may be used only for enciphering data while performing key agreement.KEY_AGREEMENT
Perform key agreement.KEY_CERT_SIGN
Verify signatures on public key certificates.KEY_ENCIPHERMENT
Encipher private or secret keys, i.e., for key transport.NON_REPUDIATION
Verify digital signatures other than signatures on certificates and certificate revocation lists, used to provide a non-repudiation service that protects against the signing entity falsely denying some action.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static X509CertificateBuilder.KeyUsage
valueOf(String name)
Returns the enum constant of this type with the specified name.static X509CertificateBuilder.KeyUsage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DIGITAL_SIGNATURE
public static final X509CertificateBuilder.KeyUsage DIGITAL_SIGNATURE
Verify digital signatures other than signatures on certificates and certificate revocation lists.
-
NON_REPUDIATION
public static final X509CertificateBuilder.KeyUsage NON_REPUDIATION
Verify digital signatures other than signatures on certificates and certificate revocation lists, used to provide a non-repudiation service that protects against the signing entity falsely denying some action.
-
KEY_ENCIPHERMENT
public static final X509CertificateBuilder.KeyUsage KEY_ENCIPHERMENT
Encipher private or secret keys, i.e., for key transport.
-
DATA_ENCIPHERMENT
public static final X509CertificateBuilder.KeyUsage DATA_ENCIPHERMENT
Direct enciphering of raw user data without the use of an intermediate symmetric cipher.
-
KEY_AGREEMENT
public static final X509CertificateBuilder.KeyUsage KEY_AGREEMENT
Perform key agreement.
-
KEY_CERT_SIGN
public static final X509CertificateBuilder.KeyUsage KEY_CERT_SIGN
Verify signatures on public key certificates.
-
CRL_SIGN
public static final X509CertificateBuilder.KeyUsage CRL_SIGN
Verify signatures on certificate revocation lists.
-
ENCIPHER_ONLY
public static final X509CertificateBuilder.KeyUsage ENCIPHER_ONLY
Indicates that the key may be used only for enciphering data while performing key agreement. Must be used in conjunction withKEY_AGREEMENT
.
-
DECIPHER_ONLY
public static final X509CertificateBuilder.KeyUsage DECIPHER_ONLY
Indicates that the key may be used only for deciphering data while performing key agreement. Must be used in conjunction withKEY_AGREEMENT
.
-
-
Method Detail
-
values
public static X509CertificateBuilder.KeyUsage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (X509CertificateBuilder.KeyUsage c : X509CertificateBuilder.KeyUsage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static X509CertificateBuilder.KeyUsage valueOf(String name)
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
-
-