Package org.pgpainless.algorithm
Enum OpenPgpPacket
- java.lang.Object
-
- java.lang.Enum<OpenPgpPacket>
-
- org.pgpainless.algorithm.OpenPgpPacket
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OpenPgpPacket>
public enum OpenPgpPacket extends java.lang.Enum<OpenPgpPacket>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OpenPgpPacket
fromTag(int tag)
static OpenPgpPacket
requireFromTag(int tag)
static OpenPgpPacket
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OpenPgpPacket[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PKESK
public static final OpenPgpPacket PKESK
-
SIG
public static final OpenPgpPacket SIG
-
SKESK
public static final OpenPgpPacket SKESK
-
OPS
public static final OpenPgpPacket OPS
-
SK
public static final OpenPgpPacket SK
-
PK
public static final OpenPgpPacket PK
-
SSK
public static final OpenPgpPacket SSK
-
COMP
public static final OpenPgpPacket COMP
-
SED
public static final OpenPgpPacket SED
-
MARKER
public static final OpenPgpPacket MARKER
-
LIT
public static final OpenPgpPacket LIT
-
TRUST
public static final OpenPgpPacket TRUST
-
UID
public static final OpenPgpPacket UID
-
PSK
public static final OpenPgpPacket PSK
-
UATTR
public static final OpenPgpPacket UATTR
-
SEIPD
public static final OpenPgpPacket SEIPD
-
MDC
public static final OpenPgpPacket MDC
-
EXP_1
public static final OpenPgpPacket EXP_1
-
EXP_2
public static final OpenPgpPacket EXP_2
-
EXP_3
public static final OpenPgpPacket EXP_3
-
EXP_4
public static final OpenPgpPacket EXP_4
-
-
Method Detail
-
values
public static OpenPgpPacket[] 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 (OpenPgpPacket c : OpenPgpPacket.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OpenPgpPacket 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
-
fromTag
@Nullable public static OpenPgpPacket fromTag(int tag)
-
requireFromTag
@Nonnull public static OpenPgpPacket requireFromTag(int tag)
-
-