Class FileBasedOpenPgpTrustStore
- java.lang.Object
-
- org.jivesoftware.smackx.ox.store.abstr.AbstractOpenPgpTrustStore
-
- org.jivesoftware.smackx.ox.store.filebased.FileBasedOpenPgpTrustStore
-
- All Implemented Interfaces:
OpenPgpTrustStore
public class FileBasedOpenPgpTrustStore extends AbstractOpenPgpTrustStore
Implementation of theOpenPgpTrustStorewhich 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 Constructor Description FileBasedOpenPgpTrustStore(java.io.File basePath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OpenPgpTrustStore.TrustreadTrust(BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint)Read the trust record for the key with fingerprintfingerprintof userownerfrom local storage.static java.lang.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 Detail
-
FileBasedOpenPgpTrustStore
public FileBasedOpenPgpTrustStore(java.io.File basePath)
-
-
Method Detail
-
TRUST_RECORD
public static java.lang.String TRUST_RECORD(org.pgpainless.key.OpenPgpV4Fingerprint fingerprint)
-
readTrust
protected OpenPgpTrustStore.Trust readTrust(BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint) throws java.io.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:
java.io.IOException- IO is dangerous
-
writeTrust
protected void writeTrust(BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint, OpenPgpTrustStore.Trust trust) throws java.io.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:
java.io.IOException- IO is dangerous
-
-