public class FileBasedOpenPgpTrustStore extends AbstractOpenPgpTrustStore
OpenPgpTrustStore which stores information in a directory structure.
<basePath>/
<userjid@server.tld>/
<fingerprint>.trust // Trust record for a key
OpenPgpTrustStore.Trust| Constructor and Description |
|---|
FileBasedOpenPgpTrustStore(java.io.File basePath) |
| Modifier and Type | Method and Description |
|---|---|
protected OpenPgpTrustStore.Trust |
readTrust(org.jxmpp.jid.BareJid owner,
org.pgpainless.key.OpenPgpV4Fingerprint fingerprint)
Read the trust record for the key with fingerprint
fingerprint of user owner from local storage. |
static java.lang.String |
TRUST_RECORD(org.pgpainless.key.OpenPgpV4Fingerprint fingerprint) |
protected void |
writeTrust(org.jxmpp.jid.BareJid owner,
org.pgpainless.key.OpenPgpV4Fingerprint fingerprint,
OpenPgpTrustStore.Trust trust)
Write the trust record for the key with fingerprint
fingerprint of user owner to local storage. |
getTrust, setTrustpublic FileBasedOpenPgpTrustStore(java.io.File basePath)
public static java.lang.String TRUST_RECORD(org.pgpainless.key.OpenPgpV4Fingerprint fingerprint)
protected OpenPgpTrustStore.Trust readTrust(org.jxmpp.jid.BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint) throws java.io.IOException
AbstractOpenPgpTrustStorefingerprint of user owner from local storage.
This method returns Trust#undecided in case that no trust record has been found.readTrust in class AbstractOpenPgpTrustStoreowner - owner of the keyfingerprint - fingerprint of the keyjava.io.IOException - IO is dangerousprotected void writeTrust(org.jxmpp.jid.BareJid owner,
org.pgpainless.key.OpenPgpV4Fingerprint fingerprint,
OpenPgpTrustStore.Trust trust)
throws java.io.IOException
AbstractOpenPgpTrustStorefingerprint of user owner to local storage.writeTrust in class AbstractOpenPgpTrustStoreowner - owner of the keyfingerprint - fingerprint of the keytrust - trust state of the keyjava.io.IOException - IO is dangerous