Enum Class DirectoryStringType
- All Implemented Interfaces:
Serializable, Comparable<DirectoryStringType>, Constable
The ASN.1 string type used to encode a distinguished-name attribute value.
X.509 permits several string types for directory attribute values, and the exact choice affects the DER bytes of the name. Selecting it explicitly keeps a rebuilt name byte-for-byte identical to the intended encoding.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DirectoryStringTypeReturns the enum constant of this class with the specified name.static DirectoryStringType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UTF8
UTF8String— the modern default for most attributes. -
PRINTABLE
PrintableString— e.g.countryName,serialNumber. -
IA5
IA5String— e.g. legacyemailAddress.
-
-
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
-