- All Implemented Interfaces:
Serializable
,Comparable<KeyUsageType>
,Constable
An enumeration of key usage types for S/MIME certificates.
- Since:
- 2.12
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionS/MIME certificate can be used only for encryption.S/MIME certificate can be used for both signing and encryption.S/MIME certificate can be used only for signing. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the key usage bits to be used in the key usage extension of a CSR.static KeyUsageType
Returns the enum constant of this class with the specified name.static KeyUsageType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SIGNING_ONLY
S/MIME certificate can be used only for signing. -
ENCRYPTION_ONLY
S/MIME certificate can be used only for encryption. -
SIGNING_AND_ENCRYPTION
S/MIME certificate can be used for both signing and encryption.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getKeyUsageBits
Returns the key usage bits to be used in the key usage extension of a CSR.
-