Class Packet

    • Constructor Detail

      • Packet

        public Packet()
    • Method Detail

      • getPacketTag

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

        public boolean hasNewPacketFormat()
        Return true, if this instance of a packet was encoded using the new packet format. If the packet was encoded using the old legacy format, return false instead.
        Returns:
        true if new packet format encoding is used
      • 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:
        OpenPGP - Packet Tags