Uses of Class
org.jivesoftware.smackx.omemo.internal.OmemoDevice
Packages that use 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
Methods in org.jivesoftware.smackx.omemo that return OmemoDeviceModifier and TypeMethodDescriptionOmemoManager.getOwnDevice()Return the OmemoDevice of the user.OmemoMessage.Received.getSenderDevice()Return the OmemoDevice which sent the message.Methods in org.jivesoftware.smackx.omemo that return types with arguments of type OmemoDeviceModifier 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.Methods in org.jivesoftware.smackx.omemo with parameters of type OmemoDeviceModifier and TypeMethodDescriptionbooleanCachingOmemoStore.containsRawSession(OmemoDevice userDevice, OmemoDevice contactsDevice) booleanFileBasedOmemoStore.containsRawSession(OmemoDevice userDevice, OmemoDevice contactsDevice) abstract booleanOmemoStore.containsRawSession(OmemoDevice userDevice, OmemoDevice contactsDevice) Return true, if we have a session with the device, otherwise false.voidOmemoManager.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 CiphertextTupleOmemoRatchet.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 DateOmemoStore.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 DateOmemoStore.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 DateOmemoStore.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.booleanOmemoManager.isDecidedOmemoIdentity(OmemoDevice device, OmemoFingerprint fingerprint) Returns true, if the fingerprint/OmemoDevice tuple is decided by the user.booleanOmemoManager.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 OmemoCachedDeviceListOmemoStore.loadCachedDeviceList(OmemoDevice userDevice, BareJid contact) Load a list of deviceIds from contact 'contact' from the local cache.intOmemoStore.loadCurrentOmemoSignedPreKeyId(OmemoDevice userDevice) CachingOmemoStore.loadOmemoIdentityKey(OmemoDevice userDevice, OmemoDevice contactsDevice) FileBasedOmemoStore.loadOmemoIdentityKey(OmemoDevice userDevice, OmemoDevice contactsDevice) abstract T_IdKeyOmemoStore.loadOmemoIdentityKey(OmemoDevice userDevice, OmemoDevice contactsDevice) Load the public identityKey of a device.CachingOmemoStore.loadOmemoIdentityKeyPair(OmemoDevice userDevice) FileBasedOmemoStore.loadOmemoIdentityKeyPair(OmemoDevice userDevice) abstract T_IdKeyPairOmemoStore.loadOmemoIdentityKeyPair(OmemoDevice userDevice) Load our identityKeyPair from storage.intCachingOmemoStore.loadOmemoMessageCounter(OmemoDevice userDevice, OmemoDevice contactsDevice) intFileBasedOmemoStore.loadOmemoMessageCounter(OmemoDevice userDevice, OmemoDevice contactsDevice) abstract intOmemoStore.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_PreKeyOmemoStore.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_SigPreKeyOmemoStore.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_SessOmemoStore.loadRawSession(OmemoDevice userDevice, OmemoDevice contactsDevice) Load the crypto-lib specific session object of the device from storage.protected abstract voidOmemoService.processBundle(OmemoManager omemoManager, T_Bundle contactsBundle, OmemoDevice contactsDevice) Process a received bundle.voidCachingOmemoStore.purgeOwnDeviceKeys(OmemoDevice userDevice) voidFileBasedOmemoStore.purgeOwnDeviceKeys(OmemoDevice userDevice) abstract voidOmemoStore.purgeOwnDeviceKeys(OmemoDevice userDevice) Delete this device's IdentityKey, PreKeys, SignedPreKeys and Sessions.voidOmemoManager.rebuildSessionWith(OmemoDevice contactsDevice) Build a fresh session with a contacts device.voidCachingOmemoStore.removeAllRawSessionsOf(OmemoDevice userDevice, BareJid contact) voidFileBasedOmemoStore.removeAllRawSessionsOf(OmemoDevice userDevice, BareJid contact) abstract voidOmemoStore.removeAllRawSessionsOf(OmemoDevice userDevice, BareJid contact) Remove all crypto-lib specific session of a contact.voidCachingOmemoStore.removeOmemoIdentityKey(OmemoDevice userDevice, OmemoDevice contactsDevice) voidFileBasedOmemoStore.removeOmemoIdentityKey(OmemoDevice userDevice, OmemoDevice contactsDevice) abstract voidOmemoStore.removeOmemoIdentityKey(OmemoDevice userDevice, OmemoDevice contactsDevice) Removes the identityKey of a device.voidCachingOmemoStore.removeOmemoIdentityKeyPair(OmemoDevice userDevice) voidFileBasedOmemoStore.removeOmemoIdentityKeyPair(OmemoDevice userDevice) abstract voidOmemoStore.removeOmemoIdentityKeyPair(OmemoDevice userDevice) Remove the identityKeyPair of a user.voidCachingOmemoStore.removeOmemoPreKey(OmemoDevice userDevice, int preKeyId) voidFileBasedOmemoStore.removeOmemoPreKey(OmemoDevice userDevice, int preKeyId) abstract voidOmemoStore.removeOmemoPreKey(OmemoDevice userDevice, int preKeyId) Remove a preKey from storage.voidCachingOmemoStore.removeOmemoSignedPreKey(OmemoDevice userDevice, int signedPreKeyId) voidFileBasedOmemoStore.removeOmemoSignedPreKey(OmemoDevice userDevice, int signedPreKeyId) abstract voidOmemoStore.removeOmemoSignedPreKey(OmemoDevice userDevice, int signedPreKeyId) Remove a signedPreKey from storage.voidCachingOmemoStore.removeRawSession(OmemoDevice userDevice, OmemoDevice contactsDevice) voidFileBasedOmemoStore.removeRawSession(OmemoDevice userDevice, OmemoDevice contactsDevice) abstract voidOmemoStore.removeRawSession(OmemoDevice userDevice, OmemoDevice contactsDevice) Remove a crypto-lib specific session from storage.voidOmemoStore.replenishKeys(OmemoDevice userDevice) Replenish our supply of keys.voidOmemoManager.sendRatchetUpdateMessage(OmemoDevice recipient) Send a ratchet update message.voidCachingOmemoStore.setDateOfLastDeviceIdPublication(OmemoDevice userDevice, OmemoDevice contactsDevice, Date date) voidFileBasedOmemoStore.setDateOfLastDeviceIdPublication(OmemoDevice userDevice, OmemoDevice contactsDevice, Date date) abstract voidOmemoStore.setDateOfLastDeviceIdPublication(OmemoDevice userDevice, OmemoDevice contactsDevice, Date date) Set the date of the last time the deviceId was published.voidCachingOmemoStore.setDateOfLastReceivedMessage(OmemoDevice userDevice, OmemoDevice from, Date date) voidFileBasedOmemoStore.setDateOfLastReceivedMessage(OmemoDevice userDevice, OmemoDevice contactsDevice, Date date) abstract voidOmemoStore.setDateOfLastReceivedMessage(OmemoDevice userDevice, OmemoDevice contactsDevice, Date date) Set the date of the last message that was received from a device.voidCachingOmemoStore.setDateOfLastSignedPreKeyRenewal(OmemoDevice userDevice, Date date) voidFileBasedOmemoStore.setDateOfLastSignedPreKeyRenewal(OmemoDevice userDevice, Date date) abstract voidOmemoStore.setDateOfLastSignedPreKeyRenewal(OmemoDevice userDevice, Date date) Set the date of the last time the signed preKey was renewed.voidCachingOmemoStore.storeCachedDeviceList(OmemoDevice userDevice, BareJid contact, OmemoCachedDeviceList deviceList) voidFileBasedOmemoStore.storeCachedDeviceList(OmemoDevice userDevice, BareJid contact, OmemoCachedDeviceList contactsDeviceList) abstract voidOmemoStore.storeCachedDeviceList(OmemoDevice userDevice, BareJid contact, OmemoCachedDeviceList contactsDeviceList) Store the DeviceList of the contact in local storage.voidCachingOmemoStore.storeOmemoIdentityKey(OmemoDevice userDevice, OmemoDevice device, T_IdKey t_idKey) voidFileBasedOmemoStore.storeOmemoIdentityKey(OmemoDevice userDevice, OmemoDevice contactsDevice, T_IdKey t_idKey) abstract voidOmemoStore.storeOmemoIdentityKey(OmemoDevice userDevice, OmemoDevice contactsDevice, T_IdKey contactsKey) Store the public identityKey of the device.voidCachingOmemoStore.storeOmemoIdentityKeyPair(OmemoDevice userDevice, T_IdKeyPair identityKeyPair) voidFileBasedOmemoStore.storeOmemoIdentityKeyPair(OmemoDevice userDevice, T_IdKeyPair identityKeyPair) abstract voidOmemoStore.storeOmemoIdentityKeyPair(OmemoDevice userDevice, T_IdKeyPair identityKeyPair) Store our identityKeyPair in storage.voidCachingOmemoStore.storeOmemoMessageCounter(OmemoDevice userDevice, OmemoDevice contactsDevice, int counter) voidFileBasedOmemoStore.storeOmemoMessageCounter(OmemoDevice userDevice, OmemoDevice contactsDevice, int counter) abstract voidOmemoStore.storeOmemoMessageCounter(OmemoDevice userDevice, OmemoDevice contactsDevice, int counter) Store the number of messages we sent to a device since we last received a message back.voidCachingOmemoStore.storeOmemoPreKey(OmemoDevice userDevice, int preKeyId, T_PreKey t_preKey) voidFileBasedOmemoStore.storeOmemoPreKey(OmemoDevice userDevice, int preKeyId, T_PreKey t_preKey) abstract voidOmemoStore.storeOmemoPreKey(OmemoDevice userDevice, int preKeyId, T_PreKey preKey) Store a PreKey in storage.voidOmemoStore.storeOmemoPreKeys(OmemoDevice userDevice, Map<Integer, T_PreKey> preKeyHashMap) Store a whole bunch of preKeys.voidCachingOmemoStore.storeOmemoSignedPreKey(OmemoDevice userDevice, int signedPreKeyId, T_SigPreKey signedPreKey) voidFileBasedOmemoStore.storeOmemoSignedPreKey(OmemoDevice userDevice, int signedPreKeyId, T_SigPreKey signedPreKey) abstract voidOmemoStore.storeOmemoSignedPreKey(OmemoDevice userDevice, int signedPreKeyId, T_SigPreKey signedPreKey) Store a signedPreKey in storage.voidCachingOmemoStore.storeRawSession(OmemoDevice userDevice, OmemoDevice contactsDevicece, T_Sess session) voidFileBasedOmemoStore.storeRawSession(OmemoDevice userDevice, OmemoDevice contactsDevice, T_Sess session) abstract voidOmemoStore.storeRawSession(OmemoDevice userDevice, OmemoDevice contactsDevice, T_Sess session) Store a crypto-lib specific session to storage.voidOmemoManager.trustOmemoIdentity(OmemoDevice device, OmemoFingerprint fingerprint) Trust that a fingerprint belongs to an OmemoDevice. -
Uses of OmemoDevice in org.jivesoftware.smackx.omemo.exceptions
Methods in org.jivesoftware.smackx.omemo.exceptions that return OmemoDeviceModifier 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()Methods in org.jivesoftware.smackx.omemo.exceptions that return types with arguments of type OmemoDeviceModifier and TypeMethodDescriptionCannotEstablishOmemoSessionException.getFailures()CannotEstablishOmemoSessionException.getSuccesses()UndecidedOmemoIdentityException.getUndecidedDevices()Return the HashSet of undecided devices.Methods in org.jivesoftware.smackx.omemo.exceptions with parameters of type OmemoDeviceModifier and TypeMethodDescriptionvoidCannotEstablishOmemoSessionException.addSuccess(OmemoDevice success) Constructors in org.jivesoftware.smackx.omemo.exceptions with parameters of type OmemoDeviceModifierConstructorDescriptionCannotEstablishOmemoSessionException(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.Constructor parameters in org.jivesoftware.smackx.omemo.exceptions with type arguments of type OmemoDevice -
Uses of OmemoDevice in org.jivesoftware.smackx.omemo.signal
Methods in org.jivesoftware.smackx.omemo.signal with parameters of type OmemoDeviceModifier and TypeMethodDescriptionstatic org.whispersystems.libsignal.SignalProtocolAddressSignalOmemoStoreConnector.asAddress(OmemoDevice device) org.whispersystems.libsignal.state.PreKeyBundleSignalOmemoKeyUtil.bundleFromOmemoBundle(OmemoBundleElement bundle, OmemoDevice contact, int preKeyId) byte[]SignalOmemoRatchet.doubleRatchetDecrypt(OmemoDevice sender, byte[] encryptedKey) SignalOmemoRatchet.doubleRatchetEncrypt(OmemoDevice recipient, byte[] messageKey) protected voidSignalOmemoService.processBundle(OmemoManager omemoManager, org.whispersystems.libsignal.state.PreKeyBundle contactsBundle, OmemoDevice contactsDevice) -
Uses of OmemoDevice in org.jivesoftware.smackx.omemo.trust
Methods in org.jivesoftware.smackx.omemo.trust with parameters of type OmemoDeviceModifier and TypeMethodDescriptionOmemoTrustCallback.getTrust(OmemoDevice device, OmemoFingerprint fingerprint) voidOmemoTrustCallback.setTrust(OmemoDevice device, OmemoFingerprint fingerprint, TrustState state) -
Uses of OmemoDevice in org.jivesoftware.smackx.omemo.util
Methods in org.jivesoftware.smackx.omemo.util with parameters of type OmemoDeviceModifier and TypeMethodDescriptionvoidOmemoMessageBuilder.addRecipient(OmemoDevice contactsDevice) Add a new recipient device to the message.abstract T_BundleOmemoKeyUtil.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).Constructors in org.jivesoftware.smackx.omemo.util with parameters of type OmemoDeviceModifierConstructorDescriptionOmemoMessageBuilder(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.