From 4c237d55ed8743bb8c5767df6baff6290d30055c Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Thu, 28 Sep 2023 11:29:54 +0200 Subject: [PATCH] Add note about deprecation to BaseSignatureSubpackets --- .../signature/subpackets/BaseSignatureSubpackets.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pgpainless-core/src/main/java/org/pgpainless/signature/subpackets/BaseSignatureSubpackets.java b/pgpainless-core/src/main/java/org/pgpainless/signature/subpackets/BaseSignatureSubpackets.java index 28e99b9e..09fe1a99 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/signature/subpackets/BaseSignatureSubpackets.java +++ b/pgpainless-core/src/main/java/org/pgpainless/signature/subpackets/BaseSignatureSubpackets.java @@ -35,6 +35,15 @@ public interface BaseSignatureSubpackets { } + /** + * Add both an {@link IssuerKeyID} and {@link IssuerFingerprint} subpacket pointing to the given key. + * + * @param key key + * @return this + * + * @deprecated this method MUST NOT be used for OpenPGP v6, since v6 signatures MUST NOT contain any + * {@link IssuerKeyID} packets. + */ BaseSignatureSubpackets setIssuerFingerprintAndKeyId(PGPPublicKey key); BaseSignatureSubpackets setIssuerKeyId(long keyId);