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.SecretKeyRingProtectorgetKeyRingProtector()Return theSecretKeyRingProtectorwhich is used to decrypt password protected secret keys.OpenPgpContactgetOpenPgpContact(BareJid contactsJid)Return anOpenPgpContactfor a contacts jid.voidsetKeyRingProtector(org.pgpainless.key.protection.SecretKeyRingProtector unlocker)Set aSecretKeyRingProtectorwhich is used to decrypt password protected secret keys.voidsetSecretKeyPassphraseCallback(SecretKeyPassphraseCallback callback)Set 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, 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 anOpenPgpContactfor a contacts jid.- Parameters:
contactsJid-BareJidof the contact.- Returns:
OpenPgpContactobject of the contact.
-
setKeyRingProtector
void setKeyRingProtector(org.pgpainless.key.protection.SecretKeyRingProtector unlocker)
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
void setSecretKeyPassphraseCallback(SecretKeyPassphraseCallback callback)
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.
-
-