From ab435ded3333dc67bb5c7b2cff94a34461199a00 Mon Sep 17 00:00:00 2001 From: mattosaurus Date: Fri, 28 Oct 2022 10:21:07 +0100 Subject: [PATCH] Flag PublicKey and PublicKeys properties as obsolete --- PgpCore/IEncryptionKeys.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PgpCore/IEncryptionKeys.cs b/PgpCore/IEncryptionKeys.cs index 7406acd..cd006ee 100644 --- a/PgpCore/IEncryptionKeys.cs +++ b/PgpCore/IEncryptionKeys.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; using Org.BouncyCastle.Bcpg.OpenPgp; @@ -16,7 +17,9 @@ public interface IEncryptionKeys PgpPrivateKey SigningPrivateKey { get; } PgpSecretKey SigningSecretKey { get; } PgpPublicKey MasterKey { get; } + [Obsolete("This property is obsolete and will be removed in a future release. Use the MasterKey or EncryptKeys.FirstOrDefault() properties instead.")] PgpPublicKey PublicKey { get; } + [Obsolete("This property is obsolete and will be removed in a future release. Use the MasterKey and EncryptKeys properties instead.")] IEnumerable PublicKeys { get; } PgpPrivateKey PrivateKey { get; } PgpSecretKey SecretKey { get; }