Interface OpenPgpMetadataStore

All Known Subinterfaces:
OpenPgpStore
All Known Implementing Classes:
AbstractOpenPgpMetadataStore, AbstractOpenPgpStore, FileBasedOpenPgpMetadataStore, FileBasedOpenPgpStore

public interface OpenPgpMetadataStore
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date>
    Return a Map containing all announced fingerprints of a contact, as well as the dates on which they were last modified by contact.
    void
    setAnnouncedFingerprintsOf(BareJid contact, Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date> data)
    Store a contacts announced fingerprints and dates of last modification.
  • Method Details

    • getAnnouncedFingerprintsOf

      Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date> getAnnouncedFingerprintsOf(BareJid contact) throws IOException
      Return a 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.
      Parameters:
      contact - contact in which we are interested.
      Returns:
      announced fingerprints
      Throws:
      IOException - IO is dangerous
    • setAnnouncedFingerprintsOf

      void setAnnouncedFingerprintsOf(BareJid contact, Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date> data) throws IOException
      Store a contacts announced fingerprints and dates of last modification.
      Parameters:
      contact - contact in which we are interested.
      data - Map containing the contacts announced fingerprints and dates of last modification.
      Throws:
      IOException - IO is dangerous