public interface OpenPgpStore extends OpenPgpKeyStore, OpenPgpMetadataStore, OpenPgpTrustStore
OpenPgpTrustStore.Trust| Modifier and Type | Method and Description |
|---|---|
org.pgpainless.key.protection.SecretKeyRingProtector |
getKeyRingProtector()
Return the
SecretKeyRingProtector which is used to decrypt password protected secret keys. |
OpenPgpContact |
getOpenPgpContact(org.jxmpp.jid.BareJid contactsJid)
Return an
OpenPgpContact for a contacts jid. |
void |
setKeyRingProtector(org.pgpainless.key.protection.SecretKeyRingProtector unlocker)
Set a
SecretKeyRingProtector which is used to decrypt password protected secret keys. |
void |
setSecretKeyPassphraseCallback(SecretKeyPassphraseCallback callback)
Set a
SecretKeyPassphraseCallback which is called in case we stumble over a secret key for which we have
no passphrase. |
deletePublicKeyRing, deleteSecretKeyRing, generateKeyRing, getPublicKeyFetchDates, getPublicKeyRing, getPublicKeysOf, getSecretKeyRing, getSecretKeysOf, importPublicKey, importSecretKey, setPublicKeyFetchDatesgetAnnouncedFingerprintsOf, setAnnouncedFingerprintsOfgetTrust, setTrustOpenPgpContact getOpenPgpContact(org.jxmpp.jid.BareJid contactsJid)
OpenPgpContact for a contacts jid.contactsJid - BareJid of the contact.OpenPgpContact object of the contact.void setKeyRingProtector(org.pgpainless.key.protection.SecretKeyRingProtector unlocker)
SecretKeyRingProtector which is used to decrypt password protected secret keys.unlocker - unlocker which unlocks encrypted secret keys.org.pgpainless.key.protection.SecretKeyRingProtector getKeyRingProtector()
SecretKeyRingProtector which is used to decrypt password protected secret keys.
In case no SecretKeyRingProtector has been set, this method MUST return an UnprotectedKeysProtector.void setSecretKeyPassphraseCallback(SecretKeyPassphraseCallback callback)
SecretKeyPassphraseCallback which is called in case we stumble over a secret key for which we have
no passphrase.callback - callback. MUST NOT be null.