Package org.bouncycastle.openpgp.api
Enum Class EncryptedDataPacketType
- All Implemented Interfaces:
Serializable
,Comparable<EncryptedDataPacketType>
,Constable
Encryption Mode.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<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 EncryptedDataPacketType
Returns 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
-