|
Bouncy Castle Cryptography 1.51 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.openpgp.PGPObjectFactory
public class PGPObjectFactory
General class for reading a PGP object stream.
Note: if this class finds aPGPPublicKey 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
| Constructor Summary | |
|---|---|
PGPObjectFactory(byte[] bytes)
Deprecated. use JcaPGPObjectFactory or BcPGPObjectFactory |
|
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. |
|
PGPObjectFactory(java.io.InputStream in)
Deprecated. use JcaPGPObjectFactory or BcPGPObjectFactory |
|
PGPObjectFactory(java.io.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. |
|
| Method Summary | |
|---|---|
java.lang.Object |
nextObject()
Return the next object in the stream, or null if the end of stream is reached. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PGPObjectFactory(java.io.InputStream in)
JcaPGPObjectFactory or BcPGPObjectFactory
public PGPObjectFactory(java.io.InputStream in,
KeyFingerPrintCalculator fingerPrintCalculator)
in - stream to read PGP data from.fingerPrintCalculator - calculator to use in key finger print calculations.public PGPObjectFactory(byte[] bytes)
public PGPObjectFactory(byte[] bytes,
KeyFingerPrintCalculator fingerPrintCalculator)
bytes - PGP encoded data.fingerPrintCalculator - calculator to use in key finger print calculations.| Method Detail |
|---|
public java.lang.Object nextObject()
throws java.io.IOException
null if the end of stream is reached.
java.io.IOException - if an error occurs reading from the wrapped stream or parsing data.
|
Bouncy Castle Cryptography 1.51 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||