Interface OpenPgpMetadataStore

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Map<org.pgpainless.key.OpenPgpV4Fingerprint,​java.util.Date> getAnnouncedFingerprintsOf​(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.
      void setAnnouncedFingerprintsOf​(BareJid contact, java.util.Map<org.pgpainless.key.OpenPgpV4Fingerprint,​java.util.Date> data)
      Store a contacts announced fingerprints and dates of last modification.
    • Method Detail

      • getAnnouncedFingerprintsOf

        java.util.Map<org.pgpainless.key.OpenPgpV4Fingerprint,​java.util.Date> getAnnouncedFingerprintsOf​(BareJid contact)
                                                                                                        throws java.io.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:
        java.io.IOException - IO is dangerous
      • setAnnouncedFingerprintsOf

        void setAnnouncedFingerprintsOf​(BareJid contact,
                                        java.util.Map<org.pgpainless.key.OpenPgpV4Fingerprint,​java.util.Date> data)
                                 throws java.io.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:
        java.io.IOException - IO is dangerous