public class FileBasedOpenPgpMetadataStore extends AbstractOpenPgpMetadataStore
OpenPgpMetadataStore, which stores metadata information in a file structure.
The information is stored in the following directory structure:
<basePath>/
<userjid@server.tld>/
announced.list // list of the users announced key fingerprints and modification dates
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANNOUNCED |
| Constructor and Description |
|---|
FileBasedOpenPgpMetadataStore(java.io.File basePath) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<org.pgpainless.key.OpenPgpV4Fingerprint,java.util.Date> |
readAnnouncedFingerprintsOf(org.jxmpp.jid.BareJid contact)
Read the fingerprints and modification dates of announced keys of a user from local storage.
|
void |
writeAnnouncedFingerprintsOf(org.jxmpp.jid.BareJid contact,
java.util.Map<org.pgpainless.key.OpenPgpV4Fingerprint,java.util.Date> metadata)
Write the fingerprints and modification dates of announced keys of a user to local storage.
|
getAnnouncedFingerprintsOf, setAnnouncedFingerprintsOfpublic static final java.lang.String ANNOUNCED
public FileBasedOpenPgpMetadataStore(java.io.File basePath)
public java.util.Map<org.pgpainless.key.OpenPgpV4Fingerprint,java.util.Date> readAnnouncedFingerprintsOf(org.jxmpp.jid.BareJid contact)
throws java.io.IOException
AbstractOpenPgpMetadataStorereadAnnouncedFingerprintsOf in class AbstractOpenPgpMetadataStorecontact - contactjava.io.IOException - IO is dangerouspublic void writeAnnouncedFingerprintsOf(org.jxmpp.jid.BareJid contact,
java.util.Map<org.pgpainless.key.OpenPgpV4Fingerprint,java.util.Date> metadata)
throws java.io.IOException
AbstractOpenPgpMetadataStorewriteAnnouncedFingerprintsOf in class AbstractOpenPgpMetadataStorecontact - contactmetadata - announced key fingerprints and latest modification datesjava.io.IOException - IO is dangerous