Interface OpenPgpStore
-
- All Superinterfaces:
OpenPgpKeyStore
,OpenPgpMetadataStore
,OpenPgpTrustStore
- All Known Implementing Classes:
AbstractOpenPgpStore
,FileBasedOpenPgpStore
public interface OpenPgpStore extends OpenPgpKeyStore, OpenPgpMetadataStore, OpenPgpTrustStore
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jivesoftware.smackx.ox.store.definition.OpenPgpTrustStore
OpenPgpTrustStore.Trust
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.pgpainless.key.protection.SecretKeyRingProtector
getKeyRingProtector()
Return theSecretKeyRingProtector
which is used to decrypt password protected secret keys.OpenPgpContact
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
setSecretKeyPassphraseCallback(SecretKeyPassphraseCallback callback)
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 Detail
-
getOpenPgpContact
OpenPgpContact getOpenPgpContact(BareJid contactsJid)
Return anOpenPgpContact
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 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
void setSecretKeyPassphraseCallback(SecretKeyPassphraseCallback callback)
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.
-
-