Enum Class EncryptedDataPacketType
- All Implemented Interfaces:
Serializable, Comparable<EncryptedDataPacketType>, Constable
Encryption Mode.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLibrePGP OCB-Encrypted Data packet.Deprecated.Symmetrically-Encrypted-Integrity-Protected Data packet version 1.Symmetrically-Encrypted-Integrity-Protected Data packet version 2. -
Method Summary
Modifier and TypeMethodDescriptionstatic EncryptedDataPacketTypeof(InputStreamPacket encData) Detect the type the provided encrypted data packet.static EncryptedDataPacketTypeof(PGPEncryptedDataList encDataList) Detect the type of the PGPEncryptedDataList's encrypted data packet.static EncryptedDataPacketTypeReturns the enum constant of this class with the specified name.static EncryptedDataPacketType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SED
Deprecated.Symmetrically-Encrypted Data packet. This method is deprecated, as it does not protect against malleability. -
SEIPDv1
Symmetrically-Encrypted-Integrity-Protected Data packet version 1. This method protects the message using symmetric encryption as specified in RFC4880. Support for this encryption mode is signalled usingFeatures.FEATURE_MODIFICATION_DETECTION. -
SEIPDv2
Symmetrically-Encrypted-Integrity-Protected Data packet version 2. This method protects the message using an AEAD encryption scheme specified in RFC9580. Support for this feature is signalled usingFeatures.FEATURE_SEIPD_V2. -
LIBREPGP_OED
LibrePGP OCB-Encrypted Data packet. This method protects the message using an AEAD encryption scheme specified in LibrePGP. Support for this feature is signalled usingFeatures.FEATURE_AEAD_ENCRYPTED_DATA.
-
-
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
-
of
Detect the type of the PGPEncryptedDataList's encrypted data packet.- Parameters:
encDataList- encrypted data list- Returns:
- encrypted data packet type
- Throws:
PGPException- if an unexpected data packet is encountered.
-
of
Detect the type the provided encrypted data packet.- Parameters:
encData- encrypted data packet- Returns:
- encrypted data packet type
- Throws:
PGPException- if an unexpected data packet is encountered.
-