<PackageReference Include="BouncyCastle.Cryptography" Version="2.4.0" />

PgpPublicKeyRingBundle

public class PgpPublicKeyRingBundle
public int Count { get; }

Return the number of key rings in this collection.

public PgpPublicKeyRingBundle(byte[] encoding)

public PgpPublicKeyRingBundle(Stream inputStream)

Build a PgpPublicKeyRingBundle from the passed in input stream.

Return a new bundle containing the contents of the passed in bundle and the passed in public key ring.

Return a new bundle containing the contents of the passed in bundle with the passed in public key ring removed.

public bool Contains(long keyID)

Return true if a key matching the passed in key ID is present, false otherwise.

public void Encode(Stream outStr)

public byte[] GetEncoded()

Allow enumeration of the public key rings making up this collection.

public IEnumerable<PgpPublicKeyRing> GetKeyRings(string userId)

Allow enumeration of the key rings associated with the passed in userId.

public IEnumerable<PgpPublicKeyRing> GetKeyRings(string userId, bool matchPartial)

Allow enumeration of the key rings associated with the passed in userId.

public IEnumerable<PgpPublicKeyRing> GetKeyRings(string userID, bool matchPartial, bool ignoreCase)

Allow enumeration of the key rings associated with the passed in userId.

public PgpPublicKey GetPublicKey(long keyId)

Return the PGP public key associated with the given key id.

public PgpPublicKey GetPublicKey(byte[] fingerprint)

Return the PGP public key associated with the given key fingerprint.

Return the public key ring which contains the key referred to by keyId

public PgpPublicKeyRing GetPublicKeyRing(byte[] fingerprint)

Return the public key ring which contains the key associated with the given key fingerprint.