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.SecretKeyRingProtectorReturn theSecretKeyRingProtectorwhich is used to decrypt password protected secret keys.getOpenPgpContact(BareJid contactsJid) Return anOpenPgpContactfor a contacts jid.voidsetKeyRingProtector(org.pgpainless.key.protection.SecretKeyRingProtector unlocker) Set aSecretKeyRingProtectorwhich is used to decrypt password protected secret keys.voidSet aSecretKeyPassphraseCallbackwhich 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, setPublicKeyFetchDatesMethods inherited from interface org.jivesoftware.smackx.ox.store.definition.OpenPgpMetadataStore
getAnnouncedFingerprintsOf, setAnnouncedFingerprintsOfMethods inherited from interface org.jivesoftware.smackx.ox.store.definition.OpenPgpTrustStore
getTrust, setTrust
-
Method Details
-
getOpenPgpContact
Return anOpenPgpContactfor a contacts jid.- Parameters:
contactsJid-BareJidof the contact.- Returns:
OpenPgpContactobject of the contact.
-
setKeyRingProtector
Set aSecretKeyRingProtectorwhich is used to decrypt password protected secret keys.- Parameters:
unlocker- unlocker which unlocks encrypted secret keys.
-
getKeyRingProtector
org.pgpainless.key.protection.SecretKeyRingProtector getKeyRingProtector()Return theSecretKeyRingProtectorwhich is used to decrypt password protected secret keys. In case noSecretKeyRingProtectorhas been set, this method MUST return anUnprotectedKeysProtector.- Returns:
- secret key unlocker.
-
setSecretKeyPassphraseCallback
Set aSecretKeyPassphraseCallbackwhich is called in case we stumble over a secret key for which we have no passphrase.- Parameters:
callback- callback. MUST NOT be null.
-