public abstract class AbstractOpenPgpMetadataStore extends Object implements OpenPgpMetadataStore
Constructor and Description |
---|
AbstractOpenPgpMetadataStore() |
Modifier and Type | Method and Description |
---|---|
Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date> |
getAnnouncedFingerprintsOf(org.jxmpp.jid.BareJid contact)
Return a
Map containing all announced fingerprints of a contact, as well as the dates on which they were
last modified by contact . |
protected abstract Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date> |
readAnnouncedFingerprintsOf(org.jxmpp.jid.BareJid contact)
Read the fingerprints and modification dates of announced keys of a user from local storage.
|
void |
setAnnouncedFingerprintsOf(org.jxmpp.jid.BareJid contact,
Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date> data)
Store a contacts announced fingerprints and dates of last modification.
|
protected abstract void |
writeAnnouncedFingerprintsOf(org.jxmpp.jid.BareJid contact,
Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date> metadata)
Write the fingerprints and modification dates of announced keys of a user to local storage.
|
public AbstractOpenPgpMetadataStore()
public Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date> getAnnouncedFingerprintsOf(org.jxmpp.jid.BareJid contact) throws IOException
OpenPgpMetadataStore
Map
containing all announced fingerprints of a contact, as well as the dates on which they were
last modified by contact
.
This method MUST NOT return null.getAnnouncedFingerprintsOf
in interface OpenPgpMetadataStore
contact
- contact in which we are interested.IOException
- IO is dangerouspublic void setAnnouncedFingerprintsOf(org.jxmpp.jid.BareJid contact, Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date> data) throws IOException
OpenPgpMetadataStore
setAnnouncedFingerprintsOf
in interface OpenPgpMetadataStore
contact
- contact in which we are interested.data
- Map
containing the contacts announced fingerprints and dates of last modification.IOException
- IO is dangerousprotected abstract Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date> readAnnouncedFingerprintsOf(org.jxmpp.jid.BareJid contact) throws IOException
contact
- contactIOException
- IO is dangerousprotected abstract void writeAnnouncedFingerprintsOf(org.jxmpp.jid.BareJid contact, Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date> metadata) throws IOException
contact
- contactmetadata
- announced key fingerprints and latest modification datesIOException
- IO is dangerous