Enum Class Rfc7468Label
- All Implemented Interfaces:
Serializable
,Comparable<Rfc7468Label>
,Constable
Represents a PEM label per RFC-7468
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRFC-5755See RFC-5280See RFC-2986See RFC-5652See RFC-5958See RFC-2315See RFC-5208 and RFC-5958RFC-5280See RFC-5280 -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional
<Rfc7468Label> findForLabel
(String label) Finds the enum value from the label.getLabel()
Gets the literal label value.static Rfc7468Label
Returns the enum constant of this class with the specified name.static Rfc7468Label[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CERTIFICATE
See RFC-5280 -
X509_CRL
See RFC-5280 -
CERTIFICATE_REQUEST
See RFC-2986 -
PKCS7
See RFC-2315 -
CMS
See RFC-5652 -
PRIVATE_KEY
See RFC-5208 and RFC-5958 -
ENCRYPTED_PRIVATE_KEY
See RFC-5958 -
ATTRIBUTE_CERTIFICATE
RFC-5755 -
PUBLIC_KEY
RFC-5280
-
-
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
-
getLabel
Gets the literal label value.- Returns:
- the literal label value
-
findForLabel
Finds the enum value from the label.- Parameters:
label
- the label- Returns:
- the
Optional
containing the value, or empty it not found
-