org.bouncycastle.bcpg

Class PublicKeyPacket

public class PublicKeyPacket extends ContainedPacket implements PublicKeyAlgorithmTags

basic packet for a PGP public key
Constructor Summary
PublicKeyPacket(int algorithm, Date time, BCPGKey key)
Construct version 4 public key packet.
Method Summary
voidencode(BCPGOutputStream out)
intgetAlgorithm()
byte[]getEncodedContents()
BCPGKeygetKey()
DategetTime()
intgetValidDays()
intgetVersion()

Constructor Detail

PublicKeyPacket

public PublicKeyPacket(int algorithm, Date time, BCPGKey key)
Construct version 4 public key packet.

Parameters: algorithm time key

Method Detail

encode

public void encode(BCPGOutputStream out)

getAlgorithm

public int getAlgorithm()

getEncodedContents

public byte[] getEncodedContents()

getKey

public BCPGKey getKey()

getTime

public Date getTime()

getValidDays

public int getValidDays()

getVersion

public int getVersion()