public interface OpenPgpTrustStore
Modifier and Type | Interface and Description |
---|---|
static class |
OpenPgpTrustStore.Trust |
Modifier and Type | Method and Description |
---|---|
OpenPgpTrustStore.Trust |
getTrust(BareJid owner,
org.pgpainless.key.OpenPgpV4Fingerprint fingerprint)
|
void |
setTrust(BareJid owner,
org.pgpainless.key.OpenPgpV4Fingerprint fingerprint,
OpenPgpTrustStore.Trust trust)
|
OpenPgpTrustStore.Trust getTrust(BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint) throws IOException
OpenPgpTrustStore.Trust
state of owner
s key with fingerprint fingerprint
.
The trust state describes, whether the user trusts a certain key of a contact.
If no OpenPgpTrustStore.Trust
record has been found, this method MUST return not null, nut OpenPgpTrustStore.Trust.undecided
.owner
- owner of the keyfingerprint
- fingerprint of the keyIOException
- IO is dangerousvoid setTrust(BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint, OpenPgpTrustStore.Trust trust) throws IOException
owner
- owner of the keyfingerprint
- fingerprint of the keytrust
- trust recordIOException
- IO is dangerous