Package org.bouncycastle.openpgp

High level classes for dealing with OpenPGP objects.

Interface Summary

PGPKeyFlags key flag values for the KeyFlags subpacket.

Class Summary

PGPCompressedData Compressed data objects.
PGPCompressedDataGeneratorclass for producing compressed data packets.
PGPDataValidationException Thrown if the iv at the start of a data stream indicates the wrong key is being used.
PGPEncryptedData
PGPEncryptedData.TruncatedStream
PGPEncryptedDataGenerator Generator for encrypted objects.
PGPEncryptedDataList A holder for a list of PGP encryption method packets.
PGPException generic exception class for PGP encoding/decoding problems
PGPKeyPair General class to handle JCA key pairs and convert them into OpenPGP ones.
PGPKeyRingGenerator Generator for a PGP master and subkey ring.
PGPKeyValidationException Thrown if the key checksum is invalid.
PGPLiteralData class for processing literal data objects.
PGPLiteralDataGenerator Class for producing literal data packets.
PGPMarker a PGP marker packet - in general these should be ignored other than where the idea is to preserve the original input stream.
PGPObjectFactory General class for reading a PGP object stream.
PGPOnePassSignature A one pass signature object.
PGPOnePassSignatureList Holder for a list of PGPOnePassSignatures
PGPPBEEncryptedData A password based encryption object.
PGPPrivateKey general class to contain a private key for use with other openPGP objects.
PGPPublicKey general class to handle a PGP public key object.
PGPPublicKeyEncryptedData A public key encrypted data object.
PGPPublicKeyRing general class to hold a collection of PGP Public Keys.
PGPPublicKeyRingCollection Often a PGP key ring file is made up of a succession of master/sub-key key rings.
PGPSecretKey general class to handle a PGP secret key object.
PGPSecretKeyRing Holder for a collection of PGP secret keys.
PGPSecretKeyRingCollection Often a PGP key ring file is made up of a succession of master/sub-key key rings.
PGPSignatureA PGP signature object.
PGPSignatureGenerator Generator for PGP Signatures.
PGPSignatureList A list of PGP signatures - normally in the signature block after literal data.
PGPSignatureSubpacketGenerator Generator for signature subpackets.
PGPSignatureSubpacketVector Container for a list of signature subpackets.
PGPUserAttributeSubpacketVector Container for a list of user attribute subpackets.
PGPUtil Basic utility class
PGPV3SignatureGenerator Generator for old style PGP V3 Signatures.
High level classes for dealing with OpenPGP objects.

Note: These are based on the org.bouncycastle.bcpg classes and use a streaming model, so for some objects which have an input stream associated it is necessary to read to the end of the input stream on the object before trying to read another object from the orginal input stream.

A word on key ring files. For the purpose of this package a PGP key ring is a master key and a collection of sub-keys associated with it. These public and secret key rings are handled by the PGPPublicKey ring class and the PGPSecretKeyRing class respectively. In the case where you are trying to read an key file which has multiple key rings in it, use PGPSecretKeyRingCollection for the secret key file and PGPPublicKeyRingCollection for the public key file.