Add note about deprecation to BaseSignatureSubpackets

This commit is contained in:
Paul Schaub 2023-09-28 11:29:54 +02:00
parent c9f988b2d1
commit 4c237d55ed
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 9 additions and 0 deletions

View File

@ -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);