|
Bouncy Castle Cryptography Library 1.47 | ||||||||
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 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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
java.lang.Object |
nextObject()
Return the next object in the stream, or null if the end 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)
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.Method Detail |
---|
public java.lang.Object nextObject() throws java.io.IOException
java.io.IOException
- on a parse error
|
Bouncy Castle Cryptography Library 1.47 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |