Class EncryptedPacket

All Implemented Interfaces:
Serializable, Iterable<Packet>, Packet

public final class EncryptedPacket extends SimplePacket
Since:
pcap4j 1.4.0
See Also:
  • Field Details

  • Constructor Details

    • EncryptedPacket

      private EncryptedPacket(byte[] rawData, int offset, int length)
    • EncryptedPacket

      private EncryptedPacket(EncryptedPacket.Builder builder)
  • Method Details

    • newPacket

      public static EncryptedPacket newPacket(byte[] rawData, int offset, int length)
      A static factory method. This method validates the arguments by ByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.
      Parameters:
      rawData - rawData
      offset - offset
      length - length
      Returns:
      a new EncryptedPacket object.
    • getBuilder

      public EncryptedPacket.Builder getBuilder()
      Description copied from interface: Packet
      Returns a new Builder object populated with this object's fields' values.
      Specified by:
      getBuilder in interface Packet
      Specified by:
      getBuilder in class AbstractPacket
      Returns:
      a new Builder object populated with this object's fields values
    • modifier

      protected String modifier()
      Specified by:
      modifier in class SimplePacket