Package org.jivesoftware.smackx.omemo
Class FileBasedOmemoStore<T_IdKeyPair,T_IdKey,T_PreKey,T_SigPreKey,T_Sess,T_Addr,T_ECPub,T_Bundle,T_Ciph>
java.lang.Object
org.jivesoftware.smackx.omemo.OmemoStore<T_IdKeyPair,T_IdKey,T_PreKey,T_SigPreKey,T_Sess,T_Addr,T_ECPub,T_Bundle,T_Ciph>
org.jivesoftware.smackx.omemo.FileBasedOmemoStore<T_IdKeyPair,T_IdKey,T_PreKey,T_SigPreKey,T_Sess,T_Addr,T_ECPub,T_Bundle,T_Ciph>
- Direct Known Subclasses:
SignalFileBasedOmemoStore
public abstract class FileBasedOmemoStore<T_IdKeyPair,T_IdKey,T_PreKey,T_SigPreKey,T_Sess,T_Addr,T_ECPub,T_Bundle,T_Ciph>
extends OmemoStore<T_IdKeyPair,T_IdKey,T_PreKey,T_SigPreKey,T_Sess,T_Addr,T_ECPub,T_Bundle,T_Ciph>
Like a rocket!
Implementation of the
OmemoStore class that uses plain files for storage.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class represents the directory structure of the FileBasedOmemoStore. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsRawSession(OmemoDevice userDevice, OmemoDevice contactsDevice) Return true, if we have a session with the device, otherwise false.static voiddeleteDirectory(File root) Delete a directory with all subdirectories.getDateOfLastDeviceIdPublication(OmemoDevice userDevice, OmemoDevice contactsDevice) Return the date of the last time the deviceId was published after previously being not published.getDateOfLastReceivedMessage(OmemoDevice userDevice, OmemoDevice contactsDevice) Return the date of the last message that was received from device 'from'.getDateOfLastSignedPreKeyRenewal(OmemoDevice userDevice) Get the date of the last time the signed preKey was renewed.loadAllRawSessionsOf(OmemoDevice userDevice, BareJid contact) Load all crypto-lib specific session objects of contact 'contact'.loadCachedDeviceList(OmemoDevice userDevice, BareJid contact) Load a list of deviceIds from contact 'contact' from the local cache.loadOmemoIdentityKey(OmemoDevice userDevice, OmemoDevice contactsDevice) Load the public identityKey of a device.loadOmemoIdentityKeyPair(OmemoDevice userDevice) Load our identityKeyPair from storage.intloadOmemoMessageCounter(OmemoDevice userDevice, OmemoDevice contactsDevice) Return the current value of the message counter.loadOmemoPreKey(OmemoDevice userDevice, int preKeyId) Load the preKey with id 'preKeyId' from storage.loadOmemoPreKeys(OmemoDevice userDevice) Return all our current OmemoPreKeys.loadOmemoSignedPreKey(OmemoDevice userDevice, int signedPreKeyId) Return the signedPreKey with the id 'singedPreKeyId'.loadOmemoSignedPreKeys(OmemoDevice userDevice) Load all our signed PreKeys.loadRawSession(OmemoDevice userDevice, OmemoDevice contactsDevice) Load the crypto-lib specific session object of the device from storage.localDeviceIdsOf(BareJid localUser) Returns a sorted set of all the deviceIds, the localUser has had data stored under in the store.voidpurgeOwnDeviceKeys(OmemoDevice userDevice) Delete this device's IdentityKey, PreKeys, SignedPreKeys and Sessions.voidremoveAllRawSessionsOf(OmemoDevice userDevice, BareJid contact) Remove all crypto-lib specific session of a contact.voidremoveOmemoIdentityKey(OmemoDevice userDevice, OmemoDevice contactsDevice) Removes the identityKey of a device.voidremoveOmemoIdentityKeyPair(OmemoDevice userDevice) Remove the identityKeyPair of a user.voidremoveOmemoPreKey(OmemoDevice userDevice, int preKeyId) Remove a preKey from storage.voidremoveOmemoSignedPreKey(OmemoDevice userDevice, int signedPreKeyId) Remove a signedPreKey from storage.voidremoveRawSession(OmemoDevice userDevice, OmemoDevice contactsDevice) Remove a crypto-lib specific session from storage.voidsetDateOfLastDeviceIdPublication(OmemoDevice userDevice, OmemoDevice contactsDevice, Date date) Set the date of the last time the deviceId was published.voidsetDateOfLastReceivedMessage(OmemoDevice userDevice, OmemoDevice contactsDevice, Date date) Set the date of the last message that was received from a device.voidsetDateOfLastSignedPreKeyRenewal(OmemoDevice userDevice, Date date) Set the date of the last time the signed preKey was renewed.voidstoreCachedDeviceList(OmemoDevice userDevice, BareJid contact, OmemoCachedDeviceList contactsDeviceList) Store the DeviceList of the contact in local storage.voidstoreOmemoIdentityKey(OmemoDevice userDevice, OmemoDevice contactsDevice, T_IdKey t_idKey) Store the public identityKey of the device.voidstoreOmemoIdentityKeyPair(OmemoDevice userDevice, T_IdKeyPair identityKeyPair) Store our identityKeyPair in storage.voidstoreOmemoMessageCounter(OmemoDevice userDevice, OmemoDevice contactsDevice, int counter) Store the number of messages we sent to a device since we last received a message back.voidstoreOmemoPreKey(OmemoDevice userDevice, int preKeyId, T_PreKey t_preKey) Store a PreKey in storage.voidstoreOmemoSignedPreKey(OmemoDevice userDevice, int signedPreKeyId, T_SigPreKey signedPreKey) Store a signedPreKey in storage.voidstoreRawSession(OmemoDevice userDevice, OmemoDevice contactsDevice, T_Sess session) Store a crypto-lib specific session to storage.static voidConvertBareJidsto Strings using the legacyJid.toString()method instead of the proper, url safeJid.asUrlEncodedString()method.Methods inherited from class org.jivesoftware.smackx.omemo.OmemoStore
generateOmemoIdentityKeyPair, generateOmemoPreKeys, generateOmemoSignedPreKey, getFingerprint, getFingerprint, getFingerprintAndMaybeBuildSession, keyUtil, loadCachedDeviceList, loadCurrentOmemoSignedPreKeyId, replenishKeys, storeOmemoPreKeys
-
Constructor Details
-
FileBasedOmemoStore
-
-
Method Details
-
loadOmemoIdentityKeyPair
public T_IdKeyPair loadOmemoIdentityKeyPair(OmemoDevice userDevice) throws CorruptedOmemoKeyException, IOException Description copied from class:OmemoStoreLoad our identityKeyPair from storage. Return null, if we have no identityKeyPair.- Specified by:
loadOmemoIdentityKeyPairin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.- Returns:
- loaded identityKeyPair
- Throws:
CorruptedOmemoKeyException- Thrown, if the stored key is damaged (*hands up* not my fault!)IOException- if an I/O error occurred.
-
storeOmemoIdentityKeyPair
public void storeOmemoIdentityKeyPair(OmemoDevice userDevice, T_IdKeyPair identityKeyPair) throws IOException Description copied from class:OmemoStoreStore our identityKeyPair in storage. It would be a cool feature, if the key could be stored in a encrypted database or something similar.- Specified by:
storeOmemoIdentityKeyPairin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.identityKeyPair- identityKeyPair- Throws:
IOException- if an I/O error occurred.
-
removeOmemoIdentityKeyPair
Description copied from class:OmemoStoreRemove the identityKeyPair of a user.- Specified by:
removeOmemoIdentityKeyPairin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our device.
-
loadOmemoIdentityKey
public T_IdKey loadOmemoIdentityKey(OmemoDevice userDevice, OmemoDevice contactsDevice) throws CorruptedOmemoKeyException, IOException Description copied from class:OmemoStoreLoad the public identityKey of a device.- Specified by:
loadOmemoIdentityKeyin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.contactsDevice- the device of which we want to load the identityKey.- Returns:
- loaded identityKey
- Throws:
CorruptedOmemoKeyException- when the key in question is corrupted and cant be deserialized.IOException- if an I/O error occurred.
-
storeOmemoIdentityKey
public void storeOmemoIdentityKey(OmemoDevice userDevice, OmemoDevice contactsDevice, T_IdKey t_idKey) throws IOException Description copied from class:OmemoStoreStore the public identityKey of the device.- Specified by:
storeOmemoIdentityKeyin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.contactsDevice- device.t_idKey- identityKey belonging to the contactsDevice.- Throws:
IOException- if an I/O error occurred.
-
removeOmemoIdentityKey
Description copied from class:OmemoStoreRemoves the identityKey of a device.- Specified by:
removeOmemoIdentityKeyin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our omemoDevice.contactsDevice- device of which we want to delete the identityKey.
-
localDeviceIdsOf
Description copied from class:OmemoStoreReturns a sorted set of all the deviceIds, the localUser has had data stored under in the store. Basically this returns the deviceIds of all "accounts" of localUser, which are known to the store.- Specified by:
localDeviceIdsOfin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
localUser- BareJid of the user.- Returns:
- set of deviceIds with available data.
-
setDateOfLastReceivedMessage
public void setDateOfLastReceivedMessage(OmemoDevice userDevice, OmemoDevice contactsDevice, Date date) throws IOException Description copied from class:OmemoStoreSet the date of the last message that was received from a device.- Specified by:
setDateOfLastReceivedMessagein classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- omemoManager of our device.contactsDevice- device in questiondate- date of the last received message- Throws:
IOException- if an I/O error occurred.
-
getDateOfLastReceivedMessage
public Date getDateOfLastReceivedMessage(OmemoDevice userDevice, OmemoDevice contactsDevice) throws IOException Description copied from class:OmemoStoreReturn the date of the last message that was received from device 'from'.- Specified by:
getDateOfLastReceivedMessagein classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.contactsDevice- device in question- Returns:
- date if existent, null
- Throws:
IOException- if an I/O error occurred.
-
setDateOfLastDeviceIdPublication
public void setDateOfLastDeviceIdPublication(OmemoDevice userDevice, OmemoDevice contactsDevice, Date date) throws IOException Description copied from class:OmemoStoreSet the date of the last time the deviceId was published. This method only gets called, when the deviceId was inactive/non-existent before it was published.- Specified by:
setDateOfLastDeviceIdPublicationin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevicecontactsDevice- OmemoDevice in questiondate- date of the last publication after not being published- Throws:
IOException- if an I/O error occurred.
-
getDateOfLastDeviceIdPublication
public Date getDateOfLastDeviceIdPublication(OmemoDevice userDevice, OmemoDevice contactsDevice) throws IOException Description copied from class:OmemoStoreReturn the date of the last time the deviceId was published after previously being not published. (Point in time, where the status of the deviceId changed from inactive/non-existent to active).- Specified by:
getDateOfLastDeviceIdPublicationin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevicecontactsDevice- OmemoDevice in question- Returns:
- date of the last publication after not being published
- Throws:
IOException- if an I/O error occurred.
-
setDateOfLastSignedPreKeyRenewal
Description copied from class:OmemoStoreSet the date of the last time the signed preKey was renewed.- Specified by:
setDateOfLastSignedPreKeyRenewalin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.date- date- Throws:
IOException- if an I/O error occurred.
-
getDateOfLastSignedPreKeyRenewal
Description copied from class:OmemoStoreGet the date of the last time the signed preKey was renewed.- Specified by:
getDateOfLastSignedPreKeyRenewalin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.- Returns:
- date if existent, otherwise null
- Throws:
IOException- if an I/O error occurred.
-
loadOmemoPreKey
Description copied from class:OmemoStoreLoad the preKey with id 'preKeyId' from storage.- Specified by:
loadOmemoPreKeyin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.preKeyId- id of the key to be loaded- Returns:
- loaded preKey
- Throws:
IOException- if an I/O error occurred.
-
storeOmemoPreKey
public void storeOmemoPreKey(OmemoDevice userDevice, int preKeyId, T_PreKey t_preKey) throws IOException Description copied from class:OmemoStoreStore a PreKey in storage.- Specified by:
storeOmemoPreKeyin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.preKeyId- id of the keyt_preKey- key- Throws:
IOException- if an I/O error occurred.
-
removeOmemoPreKey
Description copied from class:OmemoStoreRemove a preKey from storage. This is called, when a contact used one of our preKeys to establish a session with us.- Specified by:
removeOmemoPreKeyin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.preKeyId- id of the used key that will be deleted
-
loadOmemoPreKeys
Description copied from class:OmemoStoreReturn all our current OmemoPreKeys.- Specified by:
loadOmemoPreKeysin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.- Returns:
- Map containing our preKeys
- Throws:
IOException- if an I/O error occurred.
-
loadOmemoSignedPreKey
public T_SigPreKey loadOmemoSignedPreKey(OmemoDevice userDevice, int signedPreKeyId) throws IOException Description copied from class:OmemoStoreReturn the signedPreKey with the id 'singedPreKeyId'.- Specified by:
loadOmemoSignedPreKeyin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.signedPreKeyId- id of the key- Returns:
- loaded signed preKey
- Throws:
IOException- if an I/O error occurred.
-
loadOmemoSignedPreKeys
public TreeMap<Integer,T_SigPreKey> loadOmemoSignedPreKeys(OmemoDevice userDevice) throws IOException Description copied from class:OmemoStoreLoad all our signed PreKeys.- Specified by:
loadOmemoSignedPreKeysin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.- Returns:
- HashMap of our singedPreKeys
- Throws:
IOException- if an I/O error occurred.
-
storeOmemoSignedPreKey
public void storeOmemoSignedPreKey(OmemoDevice userDevice, int signedPreKeyId, T_SigPreKey signedPreKey) throws IOException Description copied from class:OmemoStoreStore a signedPreKey in storage.- Specified by:
storeOmemoSignedPreKeyin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.signedPreKeyId- id of the signedPreKeysignedPreKey- the key itself- Throws:
IOException- if an I/O error occurred.
-
removeOmemoSignedPreKey
Description copied from class:OmemoStoreRemove a signedPreKey from storage.- Specified by:
removeOmemoSignedPreKeyin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.signedPreKeyId- id of the key that will be removed
-
loadRawSession
Description copied from class:OmemoStoreLoad the crypto-lib specific session object of the device from storage.- Specified by:
loadRawSessionin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.contactsDevice- device whose session we want to load- Returns:
- crypto related session
- Throws:
IOException- if an I/O error occurred.
-
loadAllRawSessionsOf
public HashMap<Integer,T_Sess> loadAllRawSessionsOf(OmemoDevice userDevice, BareJid contact) throws IOException Description copied from class:OmemoStoreLoad all crypto-lib specific session objects of contact 'contact'.- Specified by:
loadAllRawSessionsOfin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.contact- BareJid of the contact we want to get all sessions from- Returns:
- TreeMap of deviceId and sessions of the contact
- Throws:
IOException- if an I/O error occurred.
-
storeRawSession
public void storeRawSession(OmemoDevice userDevice, OmemoDevice contactsDevice, T_Sess session) throws IOException Description copied from class:OmemoStoreStore a crypto-lib specific session to storage.- Specified by:
storeRawSessionin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.contactsDevice- OmemoDevice whose session we want to storesession- session- Throws:
IOException- if an I/O error occurred.
-
removeRawSession
Description copied from class:OmemoStoreRemove a crypto-lib specific session from storage.- Specified by:
removeRawSessionin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.contactsDevice- device whose session we want to delete
-
removeAllRawSessionsOf
Description copied from class:OmemoStoreRemove all crypto-lib specific session of a contact.- Specified by:
removeAllRawSessionsOfin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.contact- BareJid of the contact
-
containsRawSession
Description copied from class:OmemoStoreReturn true, if we have a session with the device, otherwise false. Hint for Signal: Do not try 'return getSession() != null' since this will create a new session.- Specified by:
containsRawSessionin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.contactsDevice- device- Returns:
- true if we have session, otherwise false
-
storeOmemoMessageCounter
public void storeOmemoMessageCounter(OmemoDevice userDevice, OmemoDevice contactsDevice, int counter) throws IOException Description copied from class:OmemoStoreStore the number of messages we sent to a device since we last received a message back. This counter gets reset to 0 whenever we receive a message from the contacts device.- Specified by:
storeOmemoMessageCounterin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our omemoDevice.contactsDevice- device of which we want to set the message counter.counter- counter value.- Throws:
IOException- if an I/O error occurred.
-
loadOmemoMessageCounter
public int loadOmemoMessageCounter(OmemoDevice userDevice, OmemoDevice contactsDevice) throws IOException Description copied from class:OmemoStoreReturn the current value of the message counter. This counter represents the number of message we sent to the contactsDevice without getting a reply back. The default value for this counter is 0.- Specified by:
loadOmemoMessageCounterin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our omemoDevicecontactsDevice- device of which we want to get the message counter.- Returns:
- counter value.
- Throws:
IOException- if an I/O error occurred.
-
loadCachedDeviceList
public OmemoCachedDeviceList loadCachedDeviceList(OmemoDevice userDevice, BareJid contact) throws IOException Description copied from class:OmemoStoreLoad a list of deviceIds from contact 'contact' from the local cache.- Specified by:
loadCachedDeviceListin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.contact- contact we want to get the deviceList of- Returns:
- CachedDeviceList of the contact
- Throws:
IOException- if an I/O error occurred.
-
storeCachedDeviceList
public void storeCachedDeviceList(OmemoDevice userDevice, BareJid contact, OmemoCachedDeviceList contactsDeviceList) throws IOException Description copied from class:OmemoStoreStore the DeviceList of the contact in local storage. See this as a cache.- Specified by:
storeCachedDeviceListin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.contact- ContactcontactsDeviceList- list of the contacts devices' ids.- Throws:
IOException- if an I/O error occurred.
-
purgeOwnDeviceKeys
Description copied from class:OmemoStoreDelete this device's IdentityKey, PreKeys, SignedPreKeys and Sessions.- Specified by:
purgeOwnDeviceKeysin classOmemoStore<T_IdKeyPair,T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> - Parameters:
userDevice- our OmemoDevice.
-
deleteDirectory
Delete a directory with all subdirectories.- Parameters:
root- directory to be deleted
-
useLegacyBareJidEncoding
ConvertBareJidsto Strings using the legacyJid.toString()method instead of the proper, url safeJid.asUrlEncodedString()method. While it is highly advised to use the new format, you can use this method to stay backwards compatible to data sets created by the old implementation.
-