Top Description Constructors Methods
org.bouncycastle.bcpg

public abstract Class ContainedPacket

extends Packet
implements Encodable
Class Inheritance
All Implemented Interfaces
org.bouncycastle.util.Encodable
Known Direct Subclasses
org.bouncycastle.bcpg.PaddingPacket, org.bouncycastle.bcpg.PublicKeyEncSessionPacket, org.bouncycastle.bcpg.PublicKeyPacket, org.bouncycastle.bcpg.SecretKeyPacket, org.bouncycastle.bcpg.SignaturePacket, org.bouncycastle.bcpg.ExperimentalPacket, org.bouncycastle.bcpg.MarkerPacket, org.bouncycastle.bcpg.ModDetectionCodePacket, org.bouncycastle.bcpg.OnePassSignaturePacket, org.bouncycastle.bcpg.SymmetricKeyEncSessionPacket, org.bouncycastle.bcpg.TrustPacket, org.bouncycastle.bcpg.UnknownPacket, org.bouncycastle.bcpg.UserAttributePacket, org.bouncycastle.bcpg.UserIDPacket
Imports
java.io.ByteArrayOutputStream, .IOException, org.bouncycastle.util.Encodable

Basic type for a PGP packet.

Constructor Summary

AccessConstructor and Description
pack-priv
ContainedPacket(int packetTag)

pack-priv
ContainedPacket(int packetTag, boolean newPacketFormat)

Method Summary

Modifier and TypeMethod and Description
public abstract void
public byte[]
getEncoded()

Implements org.bouncycastle.util.Encodable.getEncoded.

Return a byte array representing the implementing object.

public byte[]
Inherited from org.bouncycastle.bcpg.Packet:
getPacketTaghasNewPacketFormatisCritical

Constructor Detail

ContainedPacketback to summary
pack-priv ContainedPacket(int packetTag)
ContainedPacketback to summary
pack-priv ContainedPacket(int packetTag, boolean newPacketFormat)

Method Detail

encodeback to summary
public abstract void encode(BCPGOutputStream pOut) throws IOException
getEncodedback to summary
public byte[] getEncoded() throws IOException

Implements org.bouncycastle.util.Encodable.getEncoded.

Doc from org.bouncycastle.util.Encodable.getEncoded.

Return a byte array representing the implementing object.

Returns:byte[]

a byte array representing the encoding.

Exceptions
IOException:
if an issue arises generation the encoding.
getEncodedback to summary
public byte[] getEncoded(PacketFormat format) throws IOException