Class AbstractOpenPgpTrustStore

    • Method Detail

      • readTrust

        protected abstract OpenPgpTrustStore.Trust readTrust​(BareJid owner,
                                                             org.pgpainless.key.OpenPgpV4Fingerprint fingerprint)
                                                      throws java.io.IOException
        Read the trust record for the key with fingerprint fingerprint of user owner from local storage. This method returns OpenPgpTrustStore.Trust.undecided in case that no trust record has been found.
        Parameters:
        owner - owner of the key
        fingerprint - fingerprint of the key
        Returns:
        trust state of the key
        Throws:
        java.io.IOException - IO is dangerous
      • writeTrust

        protected abstract void writeTrust​(BareJid owner,
                                           org.pgpainless.key.OpenPgpV4Fingerprint fingerprint,
                                           OpenPgpTrustStore.Trust trust)
                                    throws java.io.IOException
        Write the trust record for the key with fingerprint fingerprint of user owner to local storage.
        Parameters:
        owner - owner of the key
        fingerprint - fingerprint of the key
        trust - trust state of the key
        Throws:
        java.io.IOException - IO is dangerous