Class FileBasedOpenPgpMetadataStore
java.lang.Object
org.jivesoftware.smackx.ox.store.abstr.AbstractOpenPgpMetadataStore
org.jivesoftware.smackx.ox.store.filebased.FileBasedOpenPgpMetadataStore
- All Implemented Interfaces:
OpenPgpMetadataStore
Implementation of the
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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreadAnnouncedFingerprintsOf
(BareJid contact) Read the fingerprints and modification dates of announced keys of a user from local storage.void
writeAnnouncedFingerprintsOf
(BareJid contact, Map<org.pgpainless.key.OpenPgpV4Fingerprint, Date> metadata) Write the fingerprints and modification dates of announced keys of a user to local storage.Methods inherited from class org.jivesoftware.smackx.ox.store.abstr.AbstractOpenPgpMetadataStore
getAnnouncedFingerprintsOf, setAnnouncedFingerprintsOf
-
Field Details
-
ANNOUNCED
- See Also:
-
-
Constructor Details
-
FileBasedOpenPgpMetadataStore
-
-
Method Details
-
readAnnouncedFingerprintsOf
public Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date> readAnnouncedFingerprintsOf(BareJid contact) throws IOException Description copied from class:AbstractOpenPgpMetadataStore
Read the fingerprints and modification dates of announced keys of a user from local storage.- Specified by:
readAnnouncedFingerprintsOf
in classAbstractOpenPgpMetadataStore
- Parameters:
contact
- contact- Returns:
- contacts announced key fingerprints and latest modification dates
- Throws:
IOException
- IO is dangerous
-
writeAnnouncedFingerprintsOf
public void writeAnnouncedFingerprintsOf(BareJid contact, Map<org.pgpainless.key.OpenPgpV4Fingerprint, Date> metadata) throws IOExceptionDescription copied from class:AbstractOpenPgpMetadataStore
Write the fingerprints and modification dates of announced keys of a user to local storage.- Specified by:
writeAnnouncedFingerprintsOf
in classAbstractOpenPgpMetadataStore
- Parameters:
contact
- contactmetadata
- announced key fingerprints and latest modification dates- Throws:
IOException
- IO is dangerous
-