Class FileBasedOpenPgpTrustStore

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected OpenPgpTrustStore.Trust readTrust​(org.jxmpp.jid.BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint)
      Read the trust record for the key with fingerprint fingerprint of user owner from local storage.
      static java.lang.String TRUST_RECORD​(org.pgpainless.key.OpenPgpV4Fingerprint fingerprint)  
      protected void writeTrust​(org.jxmpp.jid.BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint, OpenPgpTrustStore.Trust trust)
      Write the trust record for the key with fingerprint fingerprint of user owner to local storage.
      • Methods inherited from class java.lang.Object

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

      • FileBasedOpenPgpTrustStore

        public FileBasedOpenPgpTrustStore​(java.io.File basePath)
    • Method Detail

      • TRUST_RECORD

        public static java.lang.String TRUST_RECORD​(org.pgpainless.key.OpenPgpV4Fingerprint fingerprint)
      • readTrust

        protected OpenPgpTrustStore.Trust readTrust​(org.jxmpp.jid.BareJid owner,
                                                    org.pgpainless.key.OpenPgpV4Fingerprint fingerprint)
                                             throws java.io.IOException
        Description copied from class: AbstractOpenPgpTrustStore
        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.
        Specified by:
        readTrust in class AbstractOpenPgpTrustStore
        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 void writeTrust​(org.jxmpp.jid.BareJid owner,
                                  org.pgpainless.key.OpenPgpV4Fingerprint fingerprint,
                                  OpenPgpTrustStore.Trust trust)
                           throws java.io.IOException
        Description copied from class: AbstractOpenPgpTrustStore
        Write the trust record for the key with fingerprint fingerprint of user owner to local storage.
        Specified by:
        writeTrust in class AbstractOpenPgpTrustStore
        Parameters:
        owner - owner of the key
        fingerprint - fingerprint of the key
        trust - trust state of the key
        Throws:
        java.io.IOException - IO is dangerous