Top Description Fields Constructors Methods
org.bouncycastle.bcpg

public final Enum PacketFormat

extends Enum<PacketFormat>
Class Inheritance

OpenPGP Packet Header Length Format.
See Also
OpenPGP Packet Headers

Field Summary

Modifier and TypeField and Description
public static final PacketFormat
CURRENT

Always use the current (new) packet format.

public static final PacketFormat
LEGACY

Always use the old (legacy) packet format.

public static final PacketFormat
ROUNDTRIP

Let the individual packet decide the format (see Packet#hasNewPacketFormat()).

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static PacketFormat
public static PacketFormat[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CURRENTback to summary
public static final PacketFormat CURRENT

Always use the current (new) packet format.

LEGACYback to summary
public static final PacketFormat LEGACY

Always use the old (legacy) packet format.

ROUNDTRIPback to summary
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.

Constructor Detail

PacketFormatback to summary
private PacketFormat()

Method Detail

valueOfback to summary
public static PacketFormat valueOf(String name)
valuesback to summary
public static PacketFormat[] values()