Interface OpenPgpStore
- All Superinterfaces:
OpenPgpKeyStore
,OpenPgpMetadataStore
,OpenPgpTrustStore
- All Known Implementing Classes:
AbstractOpenPgpStore
,FileBasedOpenPgpStore
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jivesoftware.smackx.ox.store.definition.OpenPgpTrustStore
OpenPgpTrustStore.Trust
-
Method Summary
Modifier and TypeMethodDescriptionorg.pgpainless.key.protection.SecretKeyRingProtector
Return theSecretKeyRingProtector
which is used to decrypt password protected secret keys.getOpenPgpContact
(BareJid contactsJid) Return anOpenPgpContact
for a contacts jid.void
setKeyRingProtector
(org.pgpainless.key.protection.SecretKeyRingProtector unlocker) Set aSecretKeyRingProtector
which is used to decrypt password protected secret keys.void
Set aSecretKeyPassphraseCallback
which is called in case we stumble over a secret key for which we have no passphrase.Methods inherited from interface org.jivesoftware.smackx.ox.store.definition.OpenPgpKeyStore
deletePublicKeyRing, deleteSecretKeyRing, generateKeyRing, getPublicKeyFetchDates, getPublicKeyRing, getPublicKeysOf, getSecretKeyRing, getSecretKeysOf, importPublicKey, importSecretKey, setPublicKeyFetchDates
Methods inherited from interface org.jivesoftware.smackx.ox.store.definition.OpenPgpMetadataStore
getAnnouncedFingerprintsOf, setAnnouncedFingerprintsOf
Methods inherited from interface org.jivesoftware.smackx.ox.store.definition.OpenPgpTrustStore
getTrust, setTrust
-
Method Details
-
getOpenPgpContact
Return anOpenPgpContact
for a contacts jid.- Parameters:
contactsJid
-BareJid
of the contact.- Returns:
OpenPgpContact
object of the contact.
-
setKeyRingProtector
Set aSecretKeyRingProtector
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 theSecretKeyRingProtector
which is used to decrypt password protected secret keys. In case noSecretKeyRingProtector
has been set, this method MUST return anUnprotectedKeysProtector
.- Returns:
- secret key unlocker.
-
setSecretKeyPassphraseCallback
Set aSecretKeyPassphraseCallback
which is called in case we stumble over a secret key for which we have no passphrase.- Parameters:
callback
- callback. MUST NOT be null.
-