Class FileBasedOpenPgpTrustStore
java.lang.Object
org.jivesoftware.smackx.ox.store.abstr.AbstractOpenPgpTrustStore
org.jivesoftware.smackx.ox.store.filebased.FileBasedOpenPgpTrustStore
- All Implemented Interfaces:
OpenPgpTrustStore
Implementation of the
OpenPgpTrustStore which stores information in a directory structure.
<basePath>/
<userjid@server.tld>/
<fingerprint>.trust // Trust record for a key
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jivesoftware.smackx.ox.store.definition.OpenPgpTrustStore
OpenPgpTrustStore.Trust -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OpenPgpTrustStore.TrustRead the trust record for the key with fingerprintfingerprintof userownerfrom local storage.static StringTRUST_RECORD(org.pgpainless.key.OpenPgpV4Fingerprint fingerprint) protected voidwriteTrust(BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint, OpenPgpTrustStore.Trust trust) Write the trust record for the key with fingerprintfingerprintof userownerto local storage.Methods inherited from class org.jivesoftware.smackx.ox.store.abstr.AbstractOpenPgpTrustStore
getTrust, setTrust
-
Constructor Details
-
FileBasedOpenPgpTrustStore
-
-
Method Details
-
TRUST_RECORD
-
readTrust
protected OpenPgpTrustStore.Trust readTrust(BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint) throws IOException Description copied from class:AbstractOpenPgpTrustStoreRead the trust record for the key with fingerprintfingerprintof userownerfrom local storage. This method returnsOpenPgpTrustStore.Trust.undecidedin case that no trust record has been found.- Specified by:
readTrustin classAbstractOpenPgpTrustStore- Parameters:
owner- owner of the keyfingerprint- fingerprint of the key- Returns:
- trust state of the key
- Throws:
IOException- IO is dangerous
-
writeTrust
protected void writeTrust(BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint, OpenPgpTrustStore.Trust trust) throws IOException Description copied from class:AbstractOpenPgpTrustStoreWrite the trust record for the key with fingerprintfingerprintof userownerto local storage.- Specified by:
writeTrustin classAbstractOpenPgpTrustStore- Parameters:
owner- owner of the keyfingerprint- fingerprint of the keytrust- trust state of the key- Throws:
IOException- IO is dangerous
-