Class SignalCachingOmemoStore


  • public class SignalCachingOmemoStore
    extends org.jivesoftware.smackx.omemo.CachingOmemoStore<org.whispersystems.libsignal.IdentityKeyPair,​org.whispersystems.libsignal.IdentityKey,​org.whispersystems.libsignal.state.PreKeyRecord,​org.whispersystems.libsignal.state.SignedPreKeyRecord,​org.whispersystems.libsignal.state.SessionRecord,​org.whispersystems.libsignal.SignalProtocolAddress,​org.whispersystems.libsignal.ecc.ECPublicKey,​org.whispersystems.libsignal.state.PreKeyBundle,​org.whispersystems.libsignal.SessionCipher>
    Implementation of the CachingOmemoStore for smack-omemo-signal. This Store implementation can either be used as a proxy wrapping a persistent SignalOmemoStore in order to prevent excessive storage access, or it can be used standalone as an ephemeral store, which doesn't persist its contents.
    • Constructor Summary

      Constructors 
      Constructor Description
      SignalCachingOmemoStore()
      Create a new SignalCachingOmemoStore as an ephemeral standalone OmemoStore.
      SignalCachingOmemoStore​(org.jivesoftware.smackx.omemo.OmemoStore<org.whispersystems.libsignal.IdentityKeyPair,​org.whispersystems.libsignal.IdentityKey,​org.whispersystems.libsignal.state.PreKeyRecord,​org.whispersystems.libsignal.state.SignedPreKeyRecord,​org.whispersystems.libsignal.state.SessionRecord,​org.whispersystems.libsignal.SignalProtocolAddress,​org.whispersystems.libsignal.ecc.ECPublicKey,​org.whispersystems.libsignal.state.PreKeyBundle,​org.whispersystems.libsignal.SessionCipher> wrappedStore)
      Create a new SignalCachingOmemoStore as a caching layer around a persisting OmemoStore (eg.
    • Method Summary

      • Methods inherited from class org.jivesoftware.smackx.omemo.CachingOmemoStore

        containsRawSession, getDateOfLastDeviceIdPublication, getDateOfLastReceivedMessage, getDateOfLastSignedPreKeyRenewal, keyUtil, loadAllRawSessionsOf, loadCachedDeviceList, loadOmemoIdentityKey, loadOmemoIdentityKeyPair, loadOmemoMessageCounter, loadOmemoPreKey, loadOmemoPreKeys, loadOmemoSignedPreKey, loadOmemoSignedPreKeys, loadRawSession, localDeviceIdsOf, purgeOwnDeviceKeys, removeAllRawSessionsOf, removeOmemoIdentityKey, removeOmemoIdentityKeyPair, removeOmemoPreKey, removeOmemoSignedPreKey, removeRawSession, setDateOfLastDeviceIdPublication, setDateOfLastReceivedMessage, setDateOfLastSignedPreKeyRenewal, storeCachedDeviceList, storeOmemoIdentityKey, storeOmemoIdentityKeyPair, storeOmemoMessageCounter, storeOmemoPreKey, storeOmemoSignedPreKey, storeRawSession
      • Methods inherited from class org.jivesoftware.smackx.omemo.OmemoStore

        generateOmemoIdentityKeyPair, generateOmemoPreKeys, generateOmemoSignedPreKey, getFingerprint, getFingerprint, getFingerprintAndMaybeBuildSession, loadCachedDeviceList, loadCurrentOmemoSignedPreKeyId, replenishKeys, storeOmemoPreKeys
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SignalCachingOmemoStore

        public SignalCachingOmemoStore​(org.jivesoftware.smackx.omemo.OmemoStore<org.whispersystems.libsignal.IdentityKeyPair,​org.whispersystems.libsignal.IdentityKey,​org.whispersystems.libsignal.state.PreKeyRecord,​org.whispersystems.libsignal.state.SignedPreKeyRecord,​org.whispersystems.libsignal.state.SessionRecord,​org.whispersystems.libsignal.SignalProtocolAddress,​org.whispersystems.libsignal.ecc.ECPublicKey,​org.whispersystems.libsignal.state.PreKeyBundle,​org.whispersystems.libsignal.SessionCipher> wrappedStore)
        Create a new SignalCachingOmemoStore as a caching layer around a persisting OmemoStore (eg. a SignalFileBasedOmemoStore).
        Parameters:
        wrappedStore - other store implementation that gets wrapped
      • SignalCachingOmemoStore

        public SignalCachingOmemoStore()
        Create a new SignalCachingOmemoStore as an ephemeral standalone OmemoStore.