C# Class Org.BouncyCastle.Bcpg.OpenPgp.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 PgpPublicKeyRingBundle or PgpSecretKeyRingBundle.

Show file Open project: red-gate/iTextSharp-4.1.6 Class Usage Examples

Public Methods

Method Description
AllPgpObjects ( ) : IList

Return all available objects in a list.

NextPgpObject ( ) : PgpObject

Return the next object in the stream, or null if the end is reached.

PgpObjectFactory ( Stream inputStream ) : System
PgpObjectFactory ( byte bytes ) : System

Private Methods

Method Description
NextObject ( ) : object

Method Details

AllPgpObjects() public method

Return all available objects in a list.
public AllPgpObjects ( ) : IList
return IList

NextPgpObject() public method

Return the next object in the stream, or null if the end is reached.
On a parse error
public NextPgpObject ( ) : PgpObject
return PgpObject

PgpObjectFactory() public method

public PgpObjectFactory ( Stream inputStream ) : System
inputStream Stream
return System

PgpObjectFactory() public method

public PgpObjectFactory ( byte bytes ) : System
bytes byte
return System