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 classOpenPgpTrustStore.Trust
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OpenPgpTrustStore.TrustgetTrust(BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint)voidsetTrust(BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint, OpenPgpTrustStore.Trust trust)
-
-
-
Method Detail
-
getTrust
OpenPgpTrustStore.Trust getTrust(BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint) throws java.io.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:
java.io.IOException- IO is dangerous
-
setTrust
void setTrust(BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint, OpenPgpTrustStore.Trust trust) throws java.io.IOException
- Parameters:
owner- owner of the keyfingerprint- fingerprint of the keytrust- trust record- Throws:
java.io.IOException- IO is dangerous
-
-