Class Packet

java.lang.Object
org.bouncycastle.bcpg.Packet
All Implemented Interfaces:
PacketTags
Direct Known Subclasses:
ContainedPacket, InputStreamPacket

public class Packet extends Object implements PacketTags
  • Constructor Details

    • Packet

      public Packet()
  • Method Details

    • getPacketTag

      public final int getPacketTag()
      Return the tag of the packet.
      Returns:
      packet tag
    • isCritical

      public boolean isCritical()
      Returns whether the packet is to be considered critical for v6 implementations. Packets with tags less or equal to 39 are critical. Tags 40 to 59 are reserved for unassigned, non-critical packets. Tags 60 to 63 are non-critical private or experimental packets.
      Returns:
      true if the packet is critical, false otherwise.
      See Also: