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

Implement lookup mechanism using sqlite

This commit is contained in:
Paul Schaub 2022-02-14 15:00:15 +01:00
parent c4898ed26a
commit 0e4cf1c166
12 changed files with 419 additions and 8 deletions

View file

@ -4,6 +4,8 @@
package pgp.certificate_store;
import java.io.IOException;
public interface SubkeyLookup {
/**
@ -13,7 +15,7 @@ public interface SubkeyLookup {
* @param subkeyId subkey id
* @return identifier (fingerprint or special name) of the certificate
*/
String getIdentifierForSubkeyId(long subkeyId);
String getIdentifierForSubkeyId(long subkeyId) throws IOException;
/**
* Store a record of the subkey id that points to the identifier.
@ -21,5 +23,5 @@ public interface SubkeyLookup {
* @param subkeyId subkey id
* @param identifier fingerprint or special name of the certificate
*/
void storeIdentifierForSubkeyId(long subkeyId, String identifier);
void storeIdentifierForSubkeyId(long subkeyId, String identifier) throws IOException;
}