Note
if this class finds a PGPPublicKey or a PGPSecretKey it will create a
PGPPublicKeyRing, or a PGPSecretKeyRing for each key found. If all you are trying
to do is read a key ring file use either PGPPublicKeyRingCollection or
PGPSecretKeyRingCollection.
This factory supports reading the following types of objects:
PacketTags#SIGNATURE - produces a PGPSignatureListPacketTags#SECRET_KEY - produces a PGPSecretKeyRingPacketTags#PUBLIC_KEY - produces a PGPPublicKeyRingPacketTags#PUBLIC_SUBKEY - produces a PGPPublicKeyPacketTags#COMPRESSED_DATA - produces a PGPCompressedDataPacketTags#LITERAL_DATA - produces a PGPLiteralDataPacketTags#PUBLIC_KEY_ENC_SESSION - produces a PGPEncryptedDataListPacketTags#SYMMETRIC_KEY_ENC_SESSION - produces a PGPEncryptedDataListPacketTags#ONE_PASS_SIGNATURE - produces a PGPOnePassSignatureListPacketTags#MARKER - produces a PGPMarker| Modifier and Type | Field and Description |
|---|---|
| private KeyFingerPrintCalculator | |
| private BCPGInputStream |
| Access | Constructor and Description |
|---|---|
| public | PGPObjectFactory(InputStream
stream to read PGP data from. in, KeyFingerPrintCalculator calculator to use in key finger print calculations. fingerPrintCalculator)Create an object factory suitable for reading PGP objects such as keys, key rings and key ring collections, or PGP encrypted data. |
| public | PGPObjectFactory(byte[]
PGP encoded data. bytes, KeyFingerPrintCalculator calculator to use in key finger print calculations. fingerPrintCalculator)Create an object factory suitable for reading PGP objects such as keys, key rings and key ring collections, or PGP encrypted data. |
| Modifier and Type | Method and Description |
|---|---|
| public Iterator | iterator()
Implements org. |
| public Object | Returns: one of the supported objects - see class docs for details.Return the next object in the stream, or |
| fingerPrintCalculator | back to summary |
|---|---|
| private KeyFingerPrintCalculator fingerPrintCalculator | |
| in | back to summary |
|---|---|
| private BCPGInputStream in | |
| PGPObjectFactory | back to summary |
|---|---|
| public PGPObjectFactory(InputStream in, KeyFingerPrintCalculator fingerPrintCalculator) Create an object factory suitable for reading PGP objects such as keys, key rings and key ring collections, or PGP encrypted data.
| |
| PGPObjectFactory | back to summary |
|---|---|
| public PGPObjectFactory(byte[] bytes, KeyFingerPrintCalculator fingerPrintCalculator) Create an object factory suitable for reading PGP objects such as keys, key rings and key ring collections, or PGP encrypted data.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements org. Support method for Iterable where available.
| |
| nextObject | back to summary |
|---|---|
| public Object nextObject() throws IOException Return the next object in the stream, or
| |