mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-12-16 17:21:08 +01:00
SubkeyLookup: Return set of fingerprints instead of a single one
This commit is contained in:
parent
0e4cf1c166
commit
7b66954199
10 changed files with 95 additions and 220 deletions
|
|
@ -5,23 +5,24 @@
|
|||
package pgp.certificate_store;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Set;
|
||||
|
||||
public interface SubkeyLookup {
|
||||
|
||||
/**
|
||||
* Lookup the identifier of the certificate that contains the given subkey.
|
||||
* Lookup the fingerprint 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
|
||||
* @return fingerprint of the certificate
|
||||
*/
|
||||
String getIdentifierForSubkeyId(long subkeyId) throws IOException;
|
||||
Set<String> getIdentifiersForSubkeyId(long subkeyId) throws IOException;
|
||||
|
||||
/**
|
||||
* Store a record of the subkey id that points to the identifier.
|
||||
* Store a record of the subkey id that points to the fingerprint.
|
||||
*
|
||||
* @param subkeyId subkey id
|
||||
* @param identifier fingerprint or special name of the certificate
|
||||
* @param identifier fingerprint of the certificate
|
||||
*/
|
||||
void storeIdentifierForSubkeyId(long subkeyId, String identifier) throws IOException;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue