1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-12-16 09:11:08 +01:00

Add tests for SharedPGPCertificateDirectoryAdapter

This commit is contained in:
Paul Schaub 2022-02-11 19:33:54 +01:00
parent 0ef4f3b781
commit 04be9d9dcc
9 changed files with 286 additions and 2 deletions

View file

@ -0,0 +1,25 @@
// SPDX-FileCopyrightText: 2022 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: Apache-2.0
package pgp.certificate_store;
public interface SubkeyLookup {
/**
* Lookup the identifier of the certificate that contains the given subkey.
* If no record is found, return null.
*
* @param subkeyId subkey id
* @return identifier (fingerprint or special name) of the certificate
*/
String getIdentifierForSubkeyId(long subkeyId);
/**
* Store a record of the subkey id that points to the identifier.
*
* @param subkeyId subkey id
* @param identifier fingerprint or special name of the certificate
*/
void storeIdentifierForSubkeyId(long subkeyId, String identifier);
}