<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0-beta.98" />

Org.BouncyCastle.Bcpg.OpenPgp.PgpSecretKeyRing

public class PgpSecretKeyRing : PgpKeyRing
namespace Org.BouncyCastle.Bcpg.OpenPgp { public class PgpSecretKeyRing : PgpKeyRing { public PgpSecretKeyRing(byte[] encoding); public PgpSecretKeyRing(Stream inputStream); public PgpPublicKey GetPublicKey(); public PgpPublicKey GetPublicKey(long keyID); public PgpPublicKey GetPublicKey(byte[] fingerprint); public IEnumerable<PgpPublicKey> GetKeysWithSignaturesBy(long keyID); public IEnumerable<PgpPublicKey> GetPublicKeys(); public PgpSecretKey GetSecretKey(); public IEnumerable<PgpSecretKey> GetSecretKeys(); public PgpSecretKey GetSecretKey(long keyId); public PgpSecretKey GetSecretKey(byte[] fingerprint); public IEnumerable<PgpPublicKey> GetExtraPublicKeys(); public byte[] GetEncoded(); public void Encode(Stream outStr); public static PgpSecretKeyRing ReplacePublicKeys(PgpSecretKeyRing secretRing, PgpPublicKeyRing publicRing); public static PgpSecretKeyRing CopyWithNewPassword(PgpSecretKeyRing ring, char[] oldPassPhrase, char[] newPassPhrase, SymmetricKeyAlgorithmTag newEncAlgorithm, SecureRandom rand); public static PgpSecretKeyRing InsertSecretKey(PgpSecretKeyRing secRing, PgpSecretKey secKey); public static PgpSecretKeyRing RemoveSecretKey(PgpSecretKeyRing secRing, PgpSecretKey secKey); } }