Package pgp.cert_d.subkey_lookup
Interface SubkeyLookup
-
- All Known Implementing Classes:
InMemorySubkeyLookup,PGPCertificateDirectory
public interface SubkeyLookup
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<java.lang.String>getCertificateFingerprintsForSubkeyId(long subkeyId)Lookup the fingerprint of the certificate that contains the given subkey.voidstoreCertificateSubkeyIds(java.lang.String certificate, java.util.List<java.lang.Long> subkeyIds)Record, which certificate the subkey-ids in the list belong to.
-
-
-
Method Detail
-
getCertificateFingerprintsForSubkeyId
java.util.Set<java.lang.String> getCertificateFingerprintsForSubkeyId(long subkeyId) throws java.io.IOExceptionLookup the fingerprint of the certificate that contains the given subkey. If no record is found, return null.- Parameters:
subkeyId- subkey id- Returns:
- fingerprint of the certificate
- Throws:
java.io.IOException- in case of an IO error
-
storeCertificateSubkeyIds
void storeCertificateSubkeyIds(java.lang.String certificate, java.util.List<java.lang.Long> subkeyIds) throws java.io.IOExceptionRecord, which certificate the subkey-ids in the list belong to. This method does not change the affiliation of subkey-ids not contained in the provided list.- Parameters:
certificate- certificate fingerprintsubkeyIds- subkey ids- Throws:
java.io.IOException- in case of an IO error
-
-