Interface OpenPgpTrustStore

    • Method Detail

      • getTrust

        OpenPgpTrustStore.Trust getTrust​(org.jxmpp.jid.BareJid owner,
                                         org.pgpainless.key.OpenPgpV4Fingerprint fingerprint)
                                  throws java.io.IOException
        Return the OpenPgpTrustStore.Trust state of owners key with fingerprint fingerprint. The trust state describes, whether the user trusts a certain key of a contact. If no OpenPgpTrustStore.Trust record has been found, this method MUST return not null, nut OpenPgpTrustStore.Trust.undecided.
        Parameters:
        owner - owner of the key
        fingerprint - fingerprint of the key
        Returns:
        trust state
        Throws:
        java.io.IOException - IO is dangerous
      • setTrust

        void setTrust​(org.jxmpp.jid.BareJid owner,
                      org.pgpainless.key.OpenPgpV4Fingerprint fingerprint,
                      OpenPgpTrustStore.Trust trust)
               throws java.io.IOException
        Store the OpenPgpTrustStore.Trust state of owners key with fingerprint fingerprint.
        Parameters:
        owner - owner of the key
        fingerprint - fingerprint of the key
        trust - trust record
        Throws:
        java.io.IOException - IO is dangerous