1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-22 20:32:05 +01:00

Add javadoc to MissingPublicKeyCallback

This commit is contained in:
Paul Schaub 2018-07-25 22:49:02 +02:00
parent f6e523685b
commit e9ca8df956
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -19,6 +19,16 @@ import org.bouncycastle.openpgp.PGPPublicKey;
public interface MissingPublicKeyCallback {
/**
* This method gets called if we encounter a signature of an unknown key.
*
* Note: It would be super cool to provide the OpenPgp fingerprint here, but unfortunately signatures only contain
* the key id (see https://tools.ietf.org/html/rfc4880#section-5.2.3.5)
*
* @param keyId ID of the missing key
*
* @return the key or null
*/
PGPPublicKey onMissingPublicKeyEncountered(Long keyId);
}