Interface OpenPgpTrustStore
- All Known Subinterfaces:
OpenPgpStore
- All Known Implementing Classes:
AbstractOpenPgpStore,AbstractOpenPgpTrustStore,FileBasedOpenPgpStore,FileBasedOpenPgpTrustStore
public interface OpenPgpTrustStore
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidsetTrust(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.Truststate ofowners key with fingerprintfingerprint. The trust state describes, whether the user trusts a certain key of a contact. If noOpenPgpTrustStore.Trustrecord 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
-