Uses of Class
org.jivesoftware.smackx.omemo.internal.OmemoDevice
Package
Description
Classes and interfaces for OMEMO Encryption.
Exceptions.
Concrete implementation of OMEMO for smack using the signal-protocol-java library.
Callbacks used to pass trust decisions up to the client.
Helper classes and other stuff.
-
Uses of OmemoDevice in org.jivesoftware.smackx.omemo
Modifier and TypeMethodDescriptionOmemoManager.getOwnDevice()
Return the OmemoDevice of the user.OmemoMessage.Received.getSenderDevice()
Return the OmemoDevice which sent the message.Modifier and TypeMethodDescriptionOmemoManager.getActiveFingerprints
(BareJid contact) Return all OmemoFingerprints of active devices of a contact.OmemoManager.getDevicesOf
(BareJid contact) Return a set of all OMEMO capable devices of a contact.OmemoMessage.Sent.getIntendedDevices()
Return a list of all devices the sender originally intended to encrypt the message for.OmemoMessage.Sent.getSkippedDevices()
Return a map of all skipped recipients and the reasons for skipping.Modifier and TypeMethodDescriptionboolean
CachingOmemoStore.containsRawSession
(OmemoDevice userDevice, OmemoDevice contactsDevice) boolean
FileBasedOmemoStore.containsRawSession
(OmemoDevice userDevice, OmemoDevice contactsDevice) abstract boolean
OmemoStore.containsRawSession
(OmemoDevice userDevice, OmemoDevice contactsDevice) Return true, if we have a session with the device, otherwise false.void
OmemoManager.distrustOmemoIdentity
(OmemoDevice device, OmemoFingerprint fingerprint) Distrust the fingerprint/OmemoDevice tuple.abstract byte[]
OmemoRatchet.doubleRatchetDecrypt
(OmemoDevice sender, byte[] encryptedKey) Decrypt a double-ratchet-encrypted message key.abstract CiphertextTuple
OmemoRatchet.doubleRatchetEncrypt
(OmemoDevice recipient, byte[] messageKey) Encrypt a messageKey with the double ratchet session of the recipient.CachingOmemoStore.getDateOfLastDeviceIdPublication
(OmemoDevice userDevice, OmemoDevice contactsDevice) FileBasedOmemoStore.getDateOfLastDeviceIdPublication
(OmemoDevice userDevice, OmemoDevice contactsDevice) abstract Date
OmemoStore.getDateOfLastDeviceIdPublication
(OmemoDevice userDevice, OmemoDevice contactsDevice) Return the date of the last time the deviceId was published after previously being not published.CachingOmemoStore.getDateOfLastReceivedMessage
(OmemoDevice userDevice, OmemoDevice from) FileBasedOmemoStore.getDateOfLastReceivedMessage
(OmemoDevice userDevice, OmemoDevice contactsDevice) abstract Date
OmemoStore.getDateOfLastReceivedMessage
(OmemoDevice userDevice, OmemoDevice contactsDevice) Return the date of the last message that was received from device 'from'.CachingOmemoStore.getDateOfLastSignedPreKeyRenewal
(OmemoDevice userDevice) FileBasedOmemoStore.getDateOfLastSignedPreKeyRenewal
(OmemoDevice userDevice) abstract Date
OmemoStore.getDateOfLastSignedPreKeyRenewal
(OmemoDevice userDevice) Get the date of the last time the signed preKey was renewed.OmemoManager.getFingerprint
(OmemoDevice device) Get the fingerprint of a contacts device.OmemoStore.getFingerprint
(OmemoDevice userDevice) Return our identityKeys fingerprint.OmemoStore.getFingerprint
(OmemoDevice userDevice, OmemoDevice contactsDevice) Return the fingerprint of the identityKey belonging to contactsDevice.OmemoStore.getFingerprintAndMaybeBuildSession
(OmemoManager.LoggedInOmemoManager managerGuard, OmemoDevice contactsDevice) Return the fingerprint of the given devices announced identityKey.boolean
OmemoManager.isDecidedOmemoIdentity
(OmemoDevice device, OmemoFingerprint fingerprint) Returns true, if the fingerprint/OmemoDevice tuple is decided by the user.boolean
OmemoManager.isTrustedOmemoIdentity
(OmemoDevice device, OmemoFingerprint fingerprint) Returns true, if the fingerprint/OmemoDevice tuple is trusted, otherwise false.CachingOmemoStore.loadAllRawSessionsOf
(OmemoDevice userDevice, BareJid contact) FileBasedOmemoStore.loadAllRawSessionsOf
(OmemoDevice userDevice, BareJid contact) OmemoStore.loadAllRawSessionsOf
(OmemoDevice userDevice, BareJid contact) Load all crypto-lib specific session objects of contact 'contact'.CachingOmemoStore.loadCachedDeviceList
(OmemoDevice userDevice, BareJid contact) FileBasedOmemoStore.loadCachedDeviceList
(OmemoDevice userDevice, BareJid contact) OmemoStore.loadCachedDeviceList
(OmemoDevice userDevice) Load a list of deviceIds from our own devices.abstract OmemoCachedDeviceList
OmemoStore.loadCachedDeviceList
(OmemoDevice userDevice, BareJid contact) Load a list of deviceIds from contact 'contact' from the local cache.int
OmemoStore.loadCurrentOmemoSignedPreKeyId
(OmemoDevice userDevice) CachingOmemoStore.loadOmemoIdentityKey
(OmemoDevice userDevice, OmemoDevice contactsDevice) FileBasedOmemoStore.loadOmemoIdentityKey
(OmemoDevice userDevice, OmemoDevice contactsDevice) abstract T_IdKey
OmemoStore.loadOmemoIdentityKey
(OmemoDevice userDevice, OmemoDevice contactsDevice) Load the public identityKey of a device.CachingOmemoStore.loadOmemoIdentityKeyPair
(OmemoDevice userDevice) FileBasedOmemoStore.loadOmemoIdentityKeyPair
(OmemoDevice userDevice) abstract T_IdKeyPair
OmemoStore.loadOmemoIdentityKeyPair
(OmemoDevice userDevice) Load our identityKeyPair from storage.int
CachingOmemoStore.loadOmemoMessageCounter
(OmemoDevice userDevice, OmemoDevice contactsDevice) int
FileBasedOmemoStore.loadOmemoMessageCounter
(OmemoDevice userDevice, OmemoDevice contactsDevice) abstract int
OmemoStore.loadOmemoMessageCounter
(OmemoDevice userDevice, OmemoDevice contactsDevice) Return the current value of the message counter.CachingOmemoStore.loadOmemoPreKey
(OmemoDevice userDevice, int preKeyId) FileBasedOmemoStore.loadOmemoPreKey
(OmemoDevice userDevice, int preKeyId) abstract T_PreKey
OmemoStore.loadOmemoPreKey
(OmemoDevice userDevice, int preKeyId) Load the preKey with id 'preKeyId' from storage.CachingOmemoStore.loadOmemoPreKeys
(OmemoDevice userDevice) FileBasedOmemoStore.loadOmemoPreKeys
(OmemoDevice userDevice) OmemoStore.loadOmemoPreKeys
(OmemoDevice userDevice) Return all our current OmemoPreKeys.CachingOmemoStore.loadOmemoSignedPreKey
(OmemoDevice userDevice, int signedPreKeyId) FileBasedOmemoStore.loadOmemoSignedPreKey
(OmemoDevice userDevice, int signedPreKeyId) abstract T_SigPreKey
OmemoStore.loadOmemoSignedPreKey
(OmemoDevice userDevice, int signedPreKeyId) Return the signedPreKey with the id 'singedPreKeyId'.CachingOmemoStore.loadOmemoSignedPreKeys
(OmemoDevice userDevice) FileBasedOmemoStore.loadOmemoSignedPreKeys
(OmemoDevice userDevice) abstract TreeMap<Integer,
T_SigPreKey> OmemoStore.loadOmemoSignedPreKeys
(OmemoDevice userDevice) Load all our signed PreKeys.CachingOmemoStore.loadRawSession
(OmemoDevice userDevice, OmemoDevice contactsDevice) FileBasedOmemoStore.loadRawSession
(OmemoDevice userDevice, OmemoDevice contactsDevice) abstract T_Sess
OmemoStore.loadRawSession
(OmemoDevice userDevice, OmemoDevice contactsDevice) Load the crypto-lib specific session object of the device from storage.protected abstract void
OmemoService.processBundle
(OmemoManager omemoManager, T_Bundle contactsBundle, OmemoDevice contactsDevice) Process a received bundle.void
CachingOmemoStore.purgeOwnDeviceKeys
(OmemoDevice userDevice) void
FileBasedOmemoStore.purgeOwnDeviceKeys
(OmemoDevice userDevice) abstract void
OmemoStore.purgeOwnDeviceKeys
(OmemoDevice userDevice) Delete this device's IdentityKey, PreKeys, SignedPreKeys and Sessions.void
OmemoManager.rebuildSessionWith
(OmemoDevice contactsDevice) Build a fresh session with a contacts device.void
CachingOmemoStore.removeAllRawSessionsOf
(OmemoDevice userDevice, BareJid contact) void
FileBasedOmemoStore.removeAllRawSessionsOf
(OmemoDevice userDevice, BareJid contact) abstract void
OmemoStore.removeAllRawSessionsOf
(OmemoDevice userDevice, BareJid contact) Remove all crypto-lib specific session of a contact.void
CachingOmemoStore.removeOmemoIdentityKey
(OmemoDevice userDevice, OmemoDevice contactsDevice) void
FileBasedOmemoStore.removeOmemoIdentityKey
(OmemoDevice userDevice, OmemoDevice contactsDevice) abstract void
OmemoStore.removeOmemoIdentityKey
(OmemoDevice userDevice, OmemoDevice contactsDevice) Removes the identityKey of a device.void
CachingOmemoStore.removeOmemoIdentityKeyPair
(OmemoDevice userDevice) void
FileBasedOmemoStore.removeOmemoIdentityKeyPair
(OmemoDevice userDevice) abstract void
OmemoStore.removeOmemoIdentityKeyPair
(OmemoDevice userDevice) Remove the identityKeyPair of a user.void
CachingOmemoStore.removeOmemoPreKey
(OmemoDevice userDevice, int preKeyId) void
FileBasedOmemoStore.removeOmemoPreKey
(OmemoDevice userDevice, int preKeyId) abstract void
OmemoStore.removeOmemoPreKey
(OmemoDevice userDevice, int preKeyId) Remove a preKey from storage.void
CachingOmemoStore.removeOmemoSignedPreKey
(OmemoDevice userDevice, int signedPreKeyId) void
FileBasedOmemoStore.removeOmemoSignedPreKey
(OmemoDevice userDevice, int signedPreKeyId) abstract void
OmemoStore.removeOmemoSignedPreKey
(OmemoDevice userDevice, int signedPreKeyId) Remove a signedPreKey from storage.void
CachingOmemoStore.removeRawSession
(OmemoDevice userDevice, OmemoDevice contactsDevice) void
FileBasedOmemoStore.removeRawSession
(OmemoDevice userDevice, OmemoDevice contactsDevice) abstract void
OmemoStore.removeRawSession
(OmemoDevice userDevice, OmemoDevice contactsDevice) Remove a crypto-lib specific session from storage.void
OmemoStore.replenishKeys
(OmemoDevice userDevice) Replenish our supply of keys.void
OmemoManager.sendRatchetUpdateMessage
(OmemoDevice recipient) Send a ratchet update message.void
CachingOmemoStore.setDateOfLastDeviceIdPublication
(OmemoDevice userDevice, OmemoDevice contactsDevice, Date date) void
FileBasedOmemoStore.setDateOfLastDeviceIdPublication
(OmemoDevice userDevice, OmemoDevice contactsDevice, Date date) abstract void
OmemoStore.setDateOfLastDeviceIdPublication
(OmemoDevice userDevice, OmemoDevice contactsDevice, Date date) Set the date of the last time the deviceId was published.void
CachingOmemoStore.setDateOfLastReceivedMessage
(OmemoDevice userDevice, OmemoDevice from, Date date) void
FileBasedOmemoStore.setDateOfLastReceivedMessage
(OmemoDevice userDevice, OmemoDevice contactsDevice, Date date) abstract void
OmemoStore.setDateOfLastReceivedMessage
(OmemoDevice userDevice, OmemoDevice contactsDevice, Date date) Set the date of the last message that was received from a device.void
CachingOmemoStore.setDateOfLastSignedPreKeyRenewal
(OmemoDevice userDevice, Date date) void
FileBasedOmemoStore.setDateOfLastSignedPreKeyRenewal
(OmemoDevice userDevice, Date date) abstract void
OmemoStore.setDateOfLastSignedPreKeyRenewal
(OmemoDevice userDevice, Date date) Set the date of the last time the signed preKey was renewed.void
CachingOmemoStore.storeCachedDeviceList
(OmemoDevice userDevice, BareJid contact, OmemoCachedDeviceList deviceList) void
FileBasedOmemoStore.storeCachedDeviceList
(OmemoDevice userDevice, BareJid contact, OmemoCachedDeviceList contactsDeviceList) abstract void
OmemoStore.storeCachedDeviceList
(OmemoDevice userDevice, BareJid contact, OmemoCachedDeviceList contactsDeviceList) Store the DeviceList of the contact in local storage.void
CachingOmemoStore.storeOmemoIdentityKey
(OmemoDevice userDevice, OmemoDevice device, T_IdKey t_idKey) void
FileBasedOmemoStore.storeOmemoIdentityKey
(OmemoDevice userDevice, OmemoDevice contactsDevice, T_IdKey t_idKey) abstract void
OmemoStore.storeOmemoIdentityKey
(OmemoDevice userDevice, OmemoDevice contactsDevice, T_IdKey contactsKey) Store the public identityKey of the device.void
CachingOmemoStore.storeOmemoIdentityKeyPair
(OmemoDevice userDevice, T_IdKeyPair identityKeyPair) void
FileBasedOmemoStore.storeOmemoIdentityKeyPair
(OmemoDevice userDevice, T_IdKeyPair identityKeyPair) abstract void
OmemoStore.storeOmemoIdentityKeyPair
(OmemoDevice userDevice, T_IdKeyPair identityKeyPair) Store our identityKeyPair in storage.void
CachingOmemoStore.storeOmemoMessageCounter
(OmemoDevice userDevice, OmemoDevice contactsDevice, int counter) void
FileBasedOmemoStore.storeOmemoMessageCounter
(OmemoDevice userDevice, OmemoDevice contactsDevice, int counter) abstract void
OmemoStore.storeOmemoMessageCounter
(OmemoDevice userDevice, OmemoDevice contactsDevice, int counter) Store the number of messages we sent to a device since we last received a message back.void
CachingOmemoStore.storeOmemoPreKey
(OmemoDevice userDevice, int preKeyId, T_PreKey t_preKey) void
FileBasedOmemoStore.storeOmemoPreKey
(OmemoDevice userDevice, int preKeyId, T_PreKey t_preKey) abstract void
OmemoStore.storeOmemoPreKey
(OmemoDevice userDevice, int preKeyId, T_PreKey preKey) Store a PreKey in storage.void
OmemoStore.storeOmemoPreKeys
(OmemoDevice userDevice, Map<Integer, T_PreKey> preKeyHashMap) Store a whole bunch of preKeys.void
CachingOmemoStore.storeOmemoSignedPreKey
(OmemoDevice userDevice, int signedPreKeyId, T_SigPreKey signedPreKey) void
FileBasedOmemoStore.storeOmemoSignedPreKey
(OmemoDevice userDevice, int signedPreKeyId, T_SigPreKey signedPreKey) abstract void
OmemoStore.storeOmemoSignedPreKey
(OmemoDevice userDevice, int signedPreKeyId, T_SigPreKey signedPreKey) Store a signedPreKey in storage.void
CachingOmemoStore.storeRawSession
(OmemoDevice userDevice, OmemoDevice contactsDevicece, T_Sess session) void
FileBasedOmemoStore.storeRawSession
(OmemoDevice userDevice, OmemoDevice contactsDevice, T_Sess session) abstract void
OmemoStore.storeRawSession
(OmemoDevice userDevice, OmemoDevice contactsDevice, T_Sess session) Store a crypto-lib specific session to storage.void
OmemoManager.trustOmemoIdentity
(OmemoDevice device, OmemoFingerprint fingerprint) Trust that a fingerprint belongs to an OmemoDevice. -
Uses of OmemoDevice in org.jivesoftware.smackx.omemo.exceptions
Modifier and TypeMethodDescriptionNoIdentityKeyException.getDevice()
ReadOnlyDeviceException.getDevice()
Return the device in question.StaleDeviceException.getDevice()
Return the stale OMEMO device.UntrustedOmemoIdentityException.getDevice()
Return the device which sent the message.NoRawSessionException.getDeviceWithoutSession()
Modifier and TypeMethodDescriptionCannotEstablishOmemoSessionException.getFailures()
CannotEstablishOmemoSessionException.getSuccesses()
UndecidedOmemoIdentityException.getUndecidedDevices()
Return the HashSet of undecided devices.Modifier and TypeMethodDescriptionvoid
CannotEstablishOmemoSessionException.addSuccess
(OmemoDevice success) ModifierConstructorDescriptionCannotEstablishOmemoSessionException
(OmemoDevice failed, Throwable reason) NoIdentityKeyException
(OmemoDevice device) NoRawSessionException
(OmemoDevice device, Exception e) ReadOnlyDeviceException
(OmemoDevice device) Constructor.StaleDeviceException
(OmemoDevice device, Date lastMessageDate, Date lastDeviceIdPublicationDate) This exception gets thrown if a message cannot be encrypted for a device due to the device being inactive for too long (stale).UntrustedOmemoIdentityException
(OmemoDevice device, OmemoFingerprint untrustedKey) Constructor for when encryption fails because the user untrusted a recipients device.UntrustedOmemoIdentityException
(OmemoDevice device, OmemoFingerprint fpTrusted, OmemoFingerprint fpUntrusted) Constructor for when we receive a message with an identityKey different from the one we trusted. -
Uses of OmemoDevice in org.jivesoftware.smackx.omemo.signal
Modifier and TypeMethodDescriptionstatic org.whispersystems.libsignal.SignalProtocolAddress
SignalOmemoStoreConnector.asAddress
(OmemoDevice device) org.whispersystems.libsignal.state.PreKeyBundle
SignalOmemoKeyUtil.bundleFromOmemoBundle
(OmemoBundleElement bundle, OmemoDevice contact, int preKeyId) byte[]
SignalOmemoRatchet.doubleRatchetDecrypt
(OmemoDevice sender, byte[] encryptedKey) SignalOmemoRatchet.doubleRatchetEncrypt
(OmemoDevice recipient, byte[] messageKey) protected void
SignalOmemoService.processBundle
(OmemoManager omemoManager, org.whispersystems.libsignal.state.PreKeyBundle contactsBundle, OmemoDevice contactsDevice) -
Uses of OmemoDevice in org.jivesoftware.smackx.omemo.trust
Modifier and TypeMethodDescriptionOmemoTrustCallback.getTrust
(OmemoDevice device, OmemoFingerprint fingerprint) void
OmemoTrustCallback.setTrust
(OmemoDevice device, OmemoFingerprint fingerprint, TrustState state) -
Uses of OmemoDevice in org.jivesoftware.smackx.omemo.util
Modifier and TypeMethodDescriptionvoid
OmemoMessageBuilder.addRecipient
(OmemoDevice contactsDevice) Add a new recipient device to the message.abstract T_Bundle
OmemoKeyUtil.bundleFromOmemoBundle
(OmemoBundleElement bundle, OmemoDevice contact, int keyId) Build a crypto-lib specific PreKeyBundle (T_Bundle) using a PreKey from the OmemoBundleElement 'bundle'.OmemoKeyUtil.Bundle.bundles
(OmemoBundleElement bundle, OmemoDevice contact) Break up the OmemoBundleElement into a list of crypto-lib specific bundles (T_PreKey).ModifierConstructorDescriptionOmemoMessageBuilder
(OmemoDevice userDevice, OmemoTrustCallback callback, OmemoRatchet<T_IdKeyPair, T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> ratchet, byte[] aesKey, byte[] iv, String message) Create an OmemoMessageBuilder.OmemoMessageBuilder
(OmemoDevice userDevice, OmemoTrustCallback callback, OmemoRatchet<T_IdKeyPair, T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph> ratchet, String message) Create an OmemoMessageBuilder.