public enum EncryptedDataPacketType extends java.lang.Enum<EncryptedDataPacketType>
| Enum Constant and Description |
|---|
LIBREPGP_OED
LibrePGP OCB-Encrypted Data packet.
|
SED
Deprecated.
|
SEIPDv1
Symmetrically-Encrypted-Integrity-Protected Data packet version 1.
|
SEIPDv2
Symmetrically-Encrypted-Integrity-Protected Data packet version 2.
|
| Modifier and Type | Method and Description |
|---|---|
static EncryptedDataPacketType |
of(InputStreamPacket encData)
Detect the type the provided encrypted data packet.
|
static EncryptedDataPacketType |
of(PGPEncryptedDataList encDataList)
Detect the type of the PGPEncryptedDataList's encrypted data packet.
|
static EncryptedDataPacketType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EncryptedDataPacketType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated public static final EncryptedDataPacketType SED
public static final EncryptedDataPacketType SEIPDv1
Features.FEATURE_MODIFICATION_DETECTION.public static final EncryptedDataPacketType SEIPDv2
Features.FEATURE_SEIPD_V2.public static final EncryptedDataPacketType LIBREPGP_OED
Features.FEATURE_AEAD_ENCRYPTED_DATA.public static EncryptedDataPacketType[] values()
for (EncryptedDataPacketType c : EncryptedDataPacketType.values()) System.out.println(c);
public static EncryptedDataPacketType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static EncryptedDataPacketType of(PGPEncryptedDataList encDataList) throws PGPException
encDataList - encrypted data listPGPException - if an unexpected data packet is encountered.public static EncryptedDataPacketType of(InputStreamPacket encData) throws PGPException
encData - encrypted data packetPGPException - if an unexpected data packet is encountered.