Class FileBasedOpenPgpMetadataStore
- java.lang.Object
-
- org.jivesoftware.smackx.ox.store.abstr.AbstractOpenPgpMetadataStore
-
- org.jivesoftware.smackx.ox.store.filebased.FileBasedOpenPgpMetadataStore
-
- All Implemented Interfaces:
OpenPgpMetadataStore
public class FileBasedOpenPgpMetadataStore extends AbstractOpenPgpMetadataStore
Implementation of theOpenPgpMetadataStore, 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
-
-
Constructor Summary
Constructors Constructor Description FileBasedOpenPgpMetadataStore(File basePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date>readAnnouncedFingerprintsOf(BareJid contact)Read the fingerprints and modification dates of announced keys of a user from local storage.voidwriteAnnouncedFingerprintsOf(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 Detail
-
ANNOUNCED
public static final String ANNOUNCED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FileBasedOpenPgpMetadataStore
public FileBasedOpenPgpMetadataStore(File basePath)
-
-
Method Detail
-
readAnnouncedFingerprintsOf
public Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date> readAnnouncedFingerprintsOf(BareJid contact) throws IOException
Description copied from class:AbstractOpenPgpMetadataStoreRead the fingerprints and modification dates of announced keys of a user from local storage.- Specified by:
readAnnouncedFingerprintsOfin 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 IOException
Description copied from class:AbstractOpenPgpMetadataStoreWrite the fingerprints and modification dates of announced keys of a user to local storage.- Specified by:
writeAnnouncedFingerprintsOfin classAbstractOpenPgpMetadataStore- Parameters:
contact- contactmetadata- announced key fingerprints and latest modification dates- Throws:
IOException- IO is dangerous
-
-