Interface OpenPgpTrustStore
- All Known Subinterfaces:
OpenPgpStore
- All Known Implementing Classes:
AbstractOpenPgpStore
,AbstractOpenPgpTrustStore
,FileBasedOpenPgpStore
,FileBasedOpenPgpTrustStore
public interface OpenPgpTrustStore
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setTrust
(BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint, OpenPgpTrustStore.Trust trust)
-
Method Details
-
getTrust
OpenPgpTrustStore.Trust getTrust(BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint) throws IOException Return theOpenPgpTrustStore.Trust
state ofowner
s key with fingerprintfingerprint
. The trust state describes, whether the user trusts a certain key of a contact. If noOpenPgpTrustStore.Trust
record has been found, this method MUST return not null, nutOpenPgpTrustStore.Trust.undecided
.- Parameters:
owner
- owner of the keyfingerprint
- fingerprint of the key- Returns:
- trust state
- Throws:
IOException
- IO is dangerous
-
setTrust
void setTrust(BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint, OpenPgpTrustStore.Trust trust) throws IOException - Parameters:
owner
- owner of the keyfingerprint
- fingerprint of the keytrust
- trust record- Throws:
IOException
- IO is dangerous
-