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(org.jxmpp.jid.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(org.jxmpp.jid.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
-
-
-
-
Method Detail
-
TRUST_RECORD
public static java.lang.String TRUST_RECORD(org.pgpainless.key.OpenPgpV4Fingerprint fingerprint)
-
readTrust
protected OpenPgpTrustStore.Trust readTrust(org.jxmpp.jid.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(org.jxmpp.jid.BareJid owner, org.pgpainless.key.OpenPgpV4Fingerprint fingerprint, OpenPgpTrustStore.Trust trust) throws java.io.IOExceptionDescription 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
-
-