- All Implemented Interfaces:
Serializable
,Comparable<KeyStringEntry>
,Constable
The enum
KeyStringEntry
holds prefixes for PEM value entries-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe prefix for the begin of a DSA private keyThe prefix for the begin of a Elliptic Curve(EC) private keyThe prefix for the begin of a PGP private keyThe prefix for the begin of a PGP public keyThe prefix for the begin of a PKCS7 keyThe prefix for the begin of a private keyThe prefix for the begin of a public keyThe prefix for the begin of a RSA private keyThe prefix for the begin of a RSA public keyThe suffix for the end of a DSA private keyThe suffix for the end of a Elliptic Curve(EC) private keyThe suffix for the end of a PGP private keyThe suffix for the end of a PGP public keyThe prefix for the begin of a PKCS7 keyThe suffix for the end of a private keyThe suffix for the end of a public keyThe suffix for the end of a RSA private keyThe suffix for the end of a RSA public keyThe constant 'UNKNOWN' if the prefixes for PEM value entries are not known or cannot be resolved -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The Constant UNKNOWN_ALGORITHM_TYPE is if the algorithm type is unknown. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
Get the value the PEM entrytoString()
static KeyStringEntry
Returns the enum constant of this class with the specified name.static KeyStringEntry[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BEGIN_PRIVATE_KEY_PREFIX
The prefix for the begin of a private key -
BEGIN_PUBLIC_KEY_PREFIX
The prefix for the begin of a public key -
BEGIN_RSA_PRIVATE_KEY_PREFIX
The prefix for the begin of a RSA private key -
BEGIN_RSA_PUBLIC_KEY_PREFIX
The prefix for the begin of a RSA public key -
BEGIN_DSA_PRIVATE_KEY_PREFIX
The prefix for the begin of a DSA private key -
BEGIN_PGP_PRIVATE_KEY_PREFIX
The prefix for the begin of a PGP private key -
BEGIN_PGP_PUBLIC_KEY_PREFIX
The prefix for the begin of a PGP public key -
BEGIN_EC_PRIVATE_KEY_PREFIX
The prefix for the begin of a Elliptic Curve(EC) private key -
BEGIN_PKCS7_PREFIX
The prefix for the begin of a PKCS7 key -
END_PKCS7_SUFFIX
The prefix for the begin of a PKCS7 key -
END_PRIVATE_KEY_SUFFIX
The suffix for the end of a private key -
END_PUBLIC_KEY_SUFFIX
The suffix for the end of a public key -
END_RSA_PRIVATE_KEY_SUFFIX
The suffix for the end of a RSA private key -
END_RSA_PUBLIC_KEY_SUFFIX
The suffix for the end of a RSA public key -
END_DSA_PRIVATE_KEY_SUFFIX
The suffix for the end of a DSA private key -
END_PGP_PRIVATE_KEY_SUFFIX
The suffix for the end of a PGP private key -
END_PGP_PUBLIC_KEY_SUFFIX
The suffix for the end of a PGP public key -
END_EC_PRIVATE_KEY_SUFFIX
The suffix for the end of a Elliptic Curve(EC) private key -
UNKNOWN
The constant 'UNKNOWN' if the prefixes for PEM value entries are not known or cannot be resolved
-
-
Field Details
-
UNKNOWN_KEY_STRING_ENTRY
The Constant UNKNOWN_ALGORITHM_TYPE is if the algorithm type is unknown.- See Also:
-
-
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
-
getValue
Get the value the PEM entry- Returns:
- the value the PEM entry
-
toString
- Overrides:
toString
in classEnum<KeyStringEntry>
-