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

Org.BouncyCastle.Bcpg.OpenPgp.PgpSecretKeyRingBundle

public class PgpSecretKeyRingBundle
namespace Org.BouncyCastle.Bcpg.OpenPgp { public class PgpSecretKeyRingBundle { public int Count { get; } public PgpSecretKeyRingBundle(byte[] encoding); public PgpSecretKeyRingBundle(Stream inputStream); public PgpSecretKeyRingBundle(IEnumerable<PgpObject> e); public IEnumerable<PgpSecretKeyRing> GetKeyRings(); public IEnumerable<PgpSecretKeyRing> GetKeyRings(string userId); public IEnumerable<PgpSecretKeyRing> GetKeyRings(string userId, bool matchPartial); public IEnumerable<PgpSecretKeyRing> GetKeyRings(string userID, bool matchPartial, bool ignoreCase); public PgpSecretKey GetSecretKey(long keyId); public PgpSecretKeyRing GetSecretKeyRing(long keyId); public bool Contains(long keyID); public byte[] GetEncoded(); public void Encode(Stream outStr); public static PgpSecretKeyRingBundle AddSecretKeyRing(PgpSecretKeyRingBundle bundle, PgpSecretKeyRing secretKeyRing); public static PgpSecretKeyRingBundle RemoveSecretKeyRing(PgpSecretKeyRingBundle bundle, PgpSecretKeyRing secretKeyRing); } }