Enum Class EncryptedDataPacketType

java.lang.Object
java.lang.Enum<EncryptedDataPacketType>
org.bouncycastle.openpgp.api.EncryptedDataPacketType
All Implemented Interfaces:
Serializable, Comparable<EncryptedDataPacketType>, Constable

public enum EncryptedDataPacketType extends Enum<EncryptedDataPacketType>
Encryption Mode.
  • Enum Constant Details

    • SED

      @Deprecated public static final EncryptedDataPacketType SED
      Deprecated.
      Symmetrically-Encrypted Data packet. This method is deprecated, as it does not protect against malleability.
    • SEIPDv1

      public static final EncryptedDataPacketType 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 using Features.FEATURE_MODIFICATION_DETECTION.
    • SEIPDv2

      public static final EncryptedDataPacketType 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 using Features.FEATURE_SEIPD_V2.
    • LIBREPGP_OED

      public static final EncryptedDataPacketType 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 using Features.FEATURE_AEAD_ENCRYPTED_DATA.
  • Method Details

    • values

      public static EncryptedDataPacketType[] 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

      public static EncryptedDataPacketType valueOf(String name)
      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 name
      NullPointerException - if the argument is null