Class AbstractOpenPgpMetadataStore

java.lang.Object
org.jivesoftware.smackx.ox.store.abstr.AbstractOpenPgpMetadataStore
All Implemented Interfaces:
OpenPgpMetadataStore
Direct Known Subclasses:
FileBasedOpenPgpMetadataStore

public abstract class AbstractOpenPgpMetadataStore extends Object implements OpenPgpMetadataStore
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractOpenPgpMetadataStore

      public AbstractOpenPgpMetadataStore()
  • Method Details

    • getAnnouncedFingerprintsOf

      public Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date> getAnnouncedFingerprintsOf(org.jxmpp.jid.BareJid contact) throws IOException
      Description copied from interface: OpenPgpMetadataStore
      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.
      Specified by:
      getAnnouncedFingerprintsOf in interface OpenPgpMetadataStore
      Parameters:
      contact - contact in which we are interested.
      Returns:
      announced fingerprints
      Throws:
      IOException - IO is dangerous
    • setAnnouncedFingerprintsOf

      public void setAnnouncedFingerprintsOf(org.jxmpp.jid.BareJid contact, Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date> data) throws IOException
      Description copied from interface: OpenPgpMetadataStore
      Store a contacts announced fingerprints and dates of last modification.
      Specified by:
      setAnnouncedFingerprintsOf in interface OpenPgpMetadataStore
      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
    • readAnnouncedFingerprintsOf

      protected abstract Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date> readAnnouncedFingerprintsOf(org.jxmpp.jid.BareJid contact) throws IOException
      Read the fingerprints and modification dates of announced keys of a user from local storage.
      Parameters:
      contact - contact
      Returns:
      contacts announced key fingerprints and latest modification dates
      Throws:
      IOException - IO is dangerous
    • writeAnnouncedFingerprintsOf

      protected abstract void writeAnnouncedFingerprintsOf(org.jxmpp.jid.BareJid contact, Map<org.pgpainless.key.OpenPgpV4Fingerprint,Date> metadata) throws IOException
      Write the fingerprints and modification dates of announced keys of a user to local storage.
      Parameters:
      contact - contact
      metadata - announced key fingerprints and latest modification dates
      Throws:
      IOException - IO is dangerous