Interface OpenPgpStore

All Superinterfaces:
OpenPgpKeyStore, OpenPgpMetadataStore, OpenPgpTrustStore
All Known Implementing Classes:
AbstractOpenPgpStore, FileBasedOpenPgpStore

  • Method Details

    • getOpenPgpContact

      Return an OpenPgpContact for a contacts jid.
      Parameters:
      contactsJid - BareJid of the contact.
      Returns:
      OpenPgpContact object of the contact.
    • setKeyRingProtector

      void setKeyRingProtector(org.pgpainless.key.protection.SecretKeyRingProtector unlocker)
      Set a SecretKeyRingProtector which is used to decrypt password protected secret keys.
      Parameters:
      unlocker - unlocker which unlocks encrypted secret keys.
    • getKeyRingProtector

      org.pgpainless.key.protection.SecretKeyRingProtector getKeyRingProtector()
      Return the SecretKeyRingProtector which is used to decrypt password protected secret keys. In case no SecretKeyRingProtector has been set, this method MUST return an UnprotectedKeysProtector.
      Returns:
      secret key unlocker.
    • setSecretKeyPassphraseCallback

      Set a SecretKeyPassphraseCallback which is called in case we stumble over a secret key for which we have no passphrase.
      Parameters:
      callback - callback. MUST NOT be null.