- java.lang.Object
-
- java.lang.Enum<KeyStringEntry>
-
- io.github.astrapi69.crypt.api.key.KeyStringEntry
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<KeyStringEntry>
public enum KeyStringEntry extends java.lang.Enum<KeyStringEntry>
The enumKeyStringEntry
holds prefixes for PEM value entries
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BEGIN_DSA_PRIVATE_KEY_PREFIX
The prefix for the begin of a DSA private keyBEGIN_EC_PRIVATE_KEY_PREFIX
The prefix for the begin of a Elliptic Curve(EC) private keyBEGIN_PGP_PRIVATE_KEY_PREFIX
The prefix for the begin of a PGP private keyBEGIN_PGP_PUBLIC_KEY_PREFIX
The prefix for the begin of a PGP public keyBEGIN_PKCS7_PREFIX
The prefix for the begin of a PKCS7 keyBEGIN_PRIVATE_KEY_PREFIX
The prefix for the begin of a private keyBEGIN_PUBLIC_KEY_PREFIX
The prefix for the begin of a public keyBEGIN_RSA_PRIVATE_KEY_PREFIX
The prefix for the begin of a RSA private keyBEGIN_RSA_PUBLIC_KEY_PREFIX
The prefix for the begin of a RSA public keyEND_DSA_PRIVATE_KEY_SUFFIX
The suffix for the end of a DSA private keyEND_EC_PRIVATE_KEY_SUFFIX
The suffix for the end of a Elliptic Curve(EC) private keyEND_PGP_PRIVATE_KEY_SUFFIX
The suffix for the end of a PGP private keyEND_PGP_PUBLIC_KEY_SUFFIX
The suffix for the end of a PGP public keyEND_PKCS7_SUFFIX
The prefix for the begin of a PKCS7 keyEND_PRIVATE_KEY_SUFFIX
The suffix for the end of a private keyEND_PUBLIC_KEY_SUFFIX
The suffix for the end of a public keyEND_RSA_PRIVATE_KEY_SUFFIX
The suffix for the end of a RSA private keyEND_RSA_PUBLIC_KEY_SUFFIX
The suffix for the end of a RSA public keyUNKNOWN
The constant 'UNKNOWN' if the prefixes for PEM value entries are not known or cannot be resolved
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getValue()
java.lang.String
toString()
static KeyStringEntry
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static KeyStringEntry[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BEGIN_PRIVATE_KEY_PREFIX
public static final KeyStringEntry BEGIN_PRIVATE_KEY_PREFIX
The prefix for the begin of a private key
-
BEGIN_PUBLIC_KEY_PREFIX
public static final KeyStringEntry BEGIN_PUBLIC_KEY_PREFIX
The prefix for the begin of a public key
-
BEGIN_RSA_PRIVATE_KEY_PREFIX
public static final KeyStringEntry BEGIN_RSA_PRIVATE_KEY_PREFIX
The prefix for the begin of a RSA private key
-
BEGIN_RSA_PUBLIC_KEY_PREFIX
public static final KeyStringEntry BEGIN_RSA_PUBLIC_KEY_PREFIX
The prefix for the begin of a RSA public key
-
BEGIN_DSA_PRIVATE_KEY_PREFIX
public static final KeyStringEntry BEGIN_DSA_PRIVATE_KEY_PREFIX
The prefix for the begin of a DSA private key
-
BEGIN_PGP_PRIVATE_KEY_PREFIX
public static final KeyStringEntry BEGIN_PGP_PRIVATE_KEY_PREFIX
The prefix for the begin of a PGP private key
-
BEGIN_PGP_PUBLIC_KEY_PREFIX
public static final KeyStringEntry BEGIN_PGP_PUBLIC_KEY_PREFIX
The prefix for the begin of a PGP public key
-
BEGIN_EC_PRIVATE_KEY_PREFIX
public static final KeyStringEntry BEGIN_EC_PRIVATE_KEY_PREFIX
The prefix for the begin of a Elliptic Curve(EC) private key
-
BEGIN_PKCS7_PREFIX
public static final KeyStringEntry BEGIN_PKCS7_PREFIX
The prefix for the begin of a PKCS7 key
-
END_PKCS7_SUFFIX
public static final KeyStringEntry END_PKCS7_SUFFIX
The prefix for the begin of a PKCS7 key
-
END_PRIVATE_KEY_SUFFIX
public static final KeyStringEntry END_PRIVATE_KEY_SUFFIX
The suffix for the end of a private key
-
END_PUBLIC_KEY_SUFFIX
public static final KeyStringEntry END_PUBLIC_KEY_SUFFIX
The suffix for the end of a public key
-
END_RSA_PRIVATE_KEY_SUFFIX
public static final KeyStringEntry END_RSA_PRIVATE_KEY_SUFFIX
The suffix for the end of a RSA private key
-
END_RSA_PUBLIC_KEY_SUFFIX
public static final KeyStringEntry END_RSA_PUBLIC_KEY_SUFFIX
The suffix for the end of a RSA public key
-
END_DSA_PRIVATE_KEY_SUFFIX
public static final KeyStringEntry END_DSA_PRIVATE_KEY_SUFFIX
The suffix for the end of a DSA private key
-
END_PGP_PRIVATE_KEY_SUFFIX
public static final KeyStringEntry END_PGP_PRIVATE_KEY_SUFFIX
The suffix for the end of a PGP private key
-
END_PGP_PUBLIC_KEY_SUFFIX
public static final KeyStringEntry END_PGP_PUBLIC_KEY_SUFFIX
The suffix for the end of a PGP public key
-
END_EC_PRIVATE_KEY_SUFFIX
public static final KeyStringEntry END_EC_PRIVATE_KEY_SUFFIX
The suffix for the end of a Elliptic Curve(EC) private key
-
UNKNOWN
public static final KeyStringEntry UNKNOWN
The constant 'UNKNOWN' if the prefixes for PEM value entries are not known or cannot be resolved
-
-
Method Detail
-
values
public static KeyStringEntry[] 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 (KeyStringEntry c : KeyStringEntry.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyStringEntry valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public java.lang.String getValue()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<KeyStringEntry>
-
-