Bouncy Castle Cryptography Library 1.79

org.bouncycastle.bcpg
Class PacketFormat

java.lang.Object
  |
  +--org.bouncycastle.bcpg.PacketFormat

public class PacketFormat
extends java.lang.Object

OpenPGP Packet Header Length Format.

See Also:
OpenPGP Packet Headers

Field Summary
static PacketFormat CURRENT
          Always use the current (new) packet format.
static PacketFormat LEGACY
          Always use the old (legacy) packet format.
static PacketFormat ROUNDTRIP
          Let the individual packet decide the format (see Packet.hasNewPacketFormat()).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEGACY

public static final PacketFormat LEGACY
Always use the old (legacy) packet format.

CURRENT

public static final PacketFormat CURRENT
Always use the current (new) packet format.

ROUNDTRIP

public static final PacketFormat ROUNDTRIP
Let the individual packet decide the format (see Packet.hasNewPacketFormat()). This allows to round-trip packets without changing the packet format.

Bouncy Castle Cryptography Library 1.79