Package pgp.cert_d.subkey_lookup
Class InMemorySubkeyLookup
- java.lang.Object
-
- pgp.cert_d.subkey_lookup.InMemorySubkeyLookup
-
- All Implemented Interfaces:
SubkeyLookup
public class InMemorySubkeyLookup extends java.lang.Object implements SubkeyLookup
-
-
Constructor Summary
Constructors Constructor Description InMemorySubkeyLookup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()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
public java.util.Set<java.lang.String> getCertificateFingerprintsForSubkeyId(long subkeyId)
Description copied from interface:SubkeyLookupLookup the fingerprint of the certificate that contains the given subkey. If no record is found, return null.- Specified by:
getCertificateFingerprintsForSubkeyIdin interfaceSubkeyLookup- Parameters:
subkeyId- subkey id- Returns:
- fingerprint of the certificate
-
storeCertificateSubkeyIds
public void storeCertificateSubkeyIds(java.lang.String certificate, java.util.List<java.lang.Long> subkeyIds)Description copied from interface:SubkeyLookupRecord, 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.- Specified by:
storeCertificateSubkeyIdsin interfaceSubkeyLookup- Parameters:
certificate- certificate fingerprintsubkeyIds- subkey ids
-
clear
public void clear()
-
-