Interface OpenPgpTrustStore
-
- All Known Subinterfaces:
OpenPgpStore
- All Known Implementing Classes:
AbstractOpenPgpStore
,AbstractOpenPgpTrustStore
,FileBasedOpenPgpStore
,FileBasedOpenPgpTrustStore
public interface OpenPgpTrustStore
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
OpenPgpTrustStore.Trust
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OpenPgpTrustStore.Trust
getTrust(BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint)
void
setTrust(BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint, OpenPgpTrustStore.Trust trust)
-
-
-
Method Detail
-
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
-
-