public class PGPObjectFactory
extends java.lang.Object
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.
Constructor and Description |
---|
PGPObjectFactory(byte[] bytes) |
PGPObjectFactory(byte[] bytes,
KeyFingerPrintCalculator fingerPrintCalculator)
Create an object factor suitable for reading keys, key rings and key ring collections.
|
PGPObjectFactory(java.io.InputStream in) |
PGPObjectFactory(java.io.InputStream in,
KeyFingerPrintCalculator fingerPrintCalculator)
Create an object factor suitable for reading keys, key rings and key ring collections.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
nextObject()
Return the next object in the stream, or null if the end is reached.
|
public PGPObjectFactory(java.io.InputStream in)
public PGPObjectFactory(java.io.InputStream in, KeyFingerPrintCalculator fingerPrintCalculator)
in
- stream to read fromfingerPrintCalculator
- calculator to use in key finger print calculations.public PGPObjectFactory(byte[] bytes)
public PGPObjectFactory(byte[] bytes, KeyFingerPrintCalculator fingerPrintCalculator)
bytes
- stream to read fromfingerPrintCalculator
- calculator to use in key finger print calculations.