Package | Description |
---|---|
org.jivesoftware.smackx.omemo |
Classes and interfaces for OMEMO Encryption.
|
org.jivesoftware.smackx.omemo.exceptions |
Exceptions.
|
org.jivesoftware.smackx.omemo.internal |
Classes that are used internally to arrange objects.
|
org.jivesoftware.smackx.omemo.signal |
Concrete implementation of OMEMO for smack using the signal-protocol-java library.
|
org.jivesoftware.smackx.omemo.util |
Helper classes and other stuff.
|
Modifier and Type | Method and Description |
---|---|
OmemoDevice |
OmemoManager.getOwnDevice()
Return the OmemoDevice of the user.
|
Modifier and Type | Method and Description |
---|---|
HashMap<OmemoDevice,OmemoFingerprint> |
OmemoManager.getActiveFingerprints(BareJid contact)
Return all fingerprints of active devices of a contact.
|
Modifier and Type | Method and Description |
---|---|
void |
OmemoService.buildSessionFromOmemoBundle(OmemoManager omemoManager,
OmemoDevice device,
boolean fresh)
Build an OmemoSession for the given OmemoDevice.
|
abstract boolean |
OmemoStore.containsRawSession(OmemoManager omemoManager,
OmemoDevice device)
Return true, if we have a session with the device, otherwise false.
|
boolean |
FileBasedOmemoStore.containsRawSession(OmemoManager omemoManager,
OmemoDevice device) |
OmemoVAxolotlElement |
OmemoManager.createKeyTransportElement(byte[] aesKey,
byte[] iv,
OmemoDevice... to)
Create a new KeyTransportElement.
|
void |
OmemoManager.distrustOmemoIdentity(OmemoDevice device,
OmemoFingerprint fingerprint)
Distrust the fingerprint/OmemoDevice tuple.
|
abstract void |
OmemoStore.distrustOmemoIdentity(OmemoManager omemoManager,
OmemoDevice device,
OmemoFingerprint fingerprint) |
void |
FileBasedOmemoStore.distrustOmemoIdentity(OmemoManager omemoManager,
OmemoDevice device,
OmemoFingerprint fingerprint) |
void |
OmemoStore.distrustOmemoIdentity(OmemoManager omemoManager,
OmemoDevice device,
T_IdKey identityKey)
Distrust an OmemoIdentity.
|
abstract Date |
OmemoStore.getDateOfLastReceivedMessage(OmemoManager omemoManager,
OmemoDevice from)
Return the date in millis of the last message that was received from device 'from'.
|
Date |
FileBasedOmemoStore.getDateOfLastReceivedMessage(OmemoManager omemoManager,
OmemoDevice from) |
OmemoFingerprint |
OmemoManager.getFingerprint(OmemoDevice device) |
OmemoFingerprint |
OmemoStore.getFingerprint(OmemoManager omemoManager,
OmemoDevice device)
Return the fingerprint of the given devices announced identityKey.
|
protected Message |
OmemoService.getOmemoRatchetUpdateMessage(OmemoManager omemoManager,
OmemoDevice recipient,
boolean preKeyMessage)
Return a new RatchetUpdateMessage.
|
OmemoSession<T_IdKeyPair,T_IdKey,T_PreKey,T_SigPreKey,T_Sess,T_Addr,T_ECPub,T_Bundle,T_Ciph> |
OmemoStore.getOmemoSessionOf(OmemoManager omemoManager,
OmemoDevice device)
Return the OmemoSession for the OmemoDevice.
|
boolean |
OmemoManager.isDecidedOmemoIdentity(OmemoDevice device,
OmemoFingerprint fingerprint)
Returns true, if the fingerprint/OmemoDevice tuple is decided by the user.
|
abstract boolean |
OmemoStore.isDecidedOmemoIdentity(OmemoManager omemoManager,
OmemoDevice device,
OmemoFingerprint fingerprint) |
boolean |
FileBasedOmemoStore.isDecidedOmemoIdentity(OmemoManager omemoManager,
OmemoDevice device,
OmemoFingerprint fingerprint) |
boolean |
OmemoStore.isDecidedOmemoIdentity(OmemoManager omemoManager,
OmemoDevice device,
T_IdKey identityKey)
Did the user yet made a decision about whether to trust or distrust this device?
|
boolean |
OmemoManager.isTrustedOmemoIdentity(OmemoDevice device,
OmemoFingerprint fingerprint)
Returns true, if the fingerprint/OmemoDevice tuple is trusted, otherwise false.
|
abstract boolean |
OmemoStore.isTrustedOmemoIdentity(OmemoManager omemoManager,
OmemoDevice device,
OmemoFingerprint fingerprint) |
boolean |
FileBasedOmemoStore.isTrustedOmemoIdentity(OmemoManager omemoManager,
OmemoDevice device,
OmemoFingerprint fingerprint) |
boolean |
OmemoStore.isTrustedOmemoIdentity(OmemoManager omemoManager,
OmemoDevice device,
T_IdKey identityKey)
Decide, whether a identityKey of a device is trusted or not.
|
abstract T_IdKey |
OmemoStore.loadOmemoIdentityKey(OmemoManager omemoManager,
OmemoDevice device)
Load the public identityKey of the device.
|
T_IdKey |
FileBasedOmemoStore.loadOmemoIdentityKey(OmemoManager omemoManager,
OmemoDevice device) |
abstract T_Sess |
OmemoStore.loadRawSession(OmemoManager omemoManager,
OmemoDevice device)
Load the crypto-lib specific session object of the device from storage.
|
T_Sess |
FileBasedOmemoStore.loadRawSession(OmemoManager omemoManager,
OmemoDevice device) |
protected abstract void |
OmemoService.processBundle(OmemoManager omemoManager,
T_Bundle bundle,
OmemoDevice device)
Process a received bundle.
|
abstract void |
OmemoStore.removeRawSession(OmemoManager omemoManager,
OmemoDevice device)
Remove a crypto-lib specific session from storage.
|
void |
FileBasedOmemoStore.removeRawSession(OmemoManager omemoManager,
OmemoDevice device) |
protected void |
OmemoService.sendOmemoRatchetUpdateMessage(OmemoManager omemoManager,
OmemoDevice recipient,
boolean preKeyMessage)
Send an OmemoRatchetUpdateMessage to recipient.
|
void |
OmemoManager.sendRatchetUpdateMessage(OmemoDevice recipient)
Send a ratchet update message.
|
void |
OmemoStore.setDateOfLastReceivedMessage(OmemoManager omemoManager,
OmemoDevice from)
Set the date in millis of the last message that was received from device 'from' to now.
|
abstract void |
OmemoStore.setDateOfLastReceivedMessage(OmemoManager omemoManager,
OmemoDevice from,
Date date)
Set the date in millis of the last message that was received from device 'from' to 'date'.
|
void |
FileBasedOmemoStore.setDateOfLastReceivedMessage(OmemoManager omemoManager,
OmemoDevice from,
Date date) |
abstract void |
OmemoStore.storeOmemoIdentityKey(OmemoManager omemoManager,
OmemoDevice device,
T_IdKey key)
Store the public identityKey of the device.
|
void |
FileBasedOmemoStore.storeOmemoIdentityKey(OmemoManager omemoManager,
OmemoDevice device,
T_IdKey t_idKey) |
abstract void |
OmemoStore.storeRawSession(OmemoManager omemoManager,
OmemoDevice device,
T_Sess session)
Store a crypto-lib specific session to storage.
|
void |
FileBasedOmemoStore.storeRawSession(OmemoManager omemoManager,
OmemoDevice device,
T_Sess session) |
void |
OmemoManager.trustOmemoIdentity(OmemoDevice device,
OmemoFingerprint fingerprint)
Trust that a fingerprint belongs to an OmemoDevice.
|
abstract void |
OmemoStore.trustOmemoIdentity(OmemoManager omemoManager,
OmemoDevice device,
OmemoFingerprint identityKeyFingerprint) |
void |
FileBasedOmemoStore.trustOmemoIdentity(OmemoManager omemoManager,
OmemoDevice device,
OmemoFingerprint fingerprint) |
void |
OmemoStore.trustOmemoIdentity(OmemoManager omemoManager,
OmemoDevice device,
T_IdKey identityKey)
Trust an OmemoIdentity.
|
Modifier and Type | Method and Description |
---|---|
HashMap<BareJid,HashMap<OmemoDevice,Throwable>> |
CannotEstablishOmemoSessionException.getFailures() |
HashMap<BareJid,ArrayList<OmemoDevice>> |
CannotEstablishOmemoSessionException.getSuccesses() |
HashSet<OmemoDevice> |
UndecidedOmemoIdentityException.getUndecidedDevices()
Return the HashSet of undecided devices.
|
Modifier and Type | Method and Description |
---|---|
void |
CannotEstablishOmemoSessionException.addSuccess(OmemoDevice success) |
Constructor and Description |
---|
CannotEstablishOmemoSessionException(OmemoDevice failed,
Throwable reason) |
UndecidedOmemoIdentityException(OmemoDevice contact) |
Modifier and Type | Field and Description |
---|---|
protected OmemoDevice |
OmemoSession.remoteDevice |
Modifier and Type | Method and Description |
---|---|
OmemoDevice |
OmemoMessageInformation.getSenderDevice()
Return the sender device.
|
Modifier and Type | Method and Description |
---|---|
abstract T_Ciph |
OmemoSession.createCipher(OmemoDevice contact)
Create a new SessionCipher used to encrypt/decrypt keys.
|
void |
OmemoMessageInformation.setSenderDevice(OmemoDevice senderDevice)
Set the sender device.
|
Constructor and Description |
---|
OmemoMessageInformation(IdentityKeyWrapper senderIdentityKey,
OmemoDevice senderDevice,
OmemoMessageInformation.CARBON carbon)
Creates a new OmemoMessageInformation object.
|
OmemoMessageInformation(IdentityKeyWrapper senderIdentityKey,
OmemoDevice senderDevice,
OmemoMessageInformation.CARBON carbon,
boolean omemo)
Create a new OmemoMessageInformation.
|
OmemoSession(OmemoManager omemoManager,
OmemoStore<T_IdKeyPair,T_IdKey,T_PreKey,T_SigPreKey,T_Sess,T_Addr,T_ECPub,T_Bundle,T_Ciph> omemoStore,
OmemoDevice remoteDevice)
Another constructor used when they establish the session with us.
|
OmemoSession(OmemoManager omemoManager,
OmemoStore<T_IdKeyPair,T_IdKey,T_PreKey,T_SigPreKey,T_Sess,T_Addr,T_ECPub,T_Bundle,T_Ciph> omemoStore,
OmemoDevice remoteDevice,
T_IdKey identityKey)
Constructor used when we establish the session.
|
Modifier and Type | Method and Description |
---|---|
OmemoDevice |
SignalOmemoKeyUtil.addressAsOmemoDevice(org.whispersystems.libsignal.SignalProtocolAddress address) |
Modifier and Type | Method and Description |
---|---|
org.whispersystems.libsignal.state.PreKeyBundle |
SignalOmemoKeyUtil.bundleFromOmemoBundle(OmemoBundleVAxolotlElement bundle,
OmemoDevice contact,
int preKeyId) |
org.whispersystems.libsignal.SessionCipher |
SignalOmemoSession.createCipher(OmemoDevice contact) |
OmemoSession<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> |
SignalOmemoKeyUtil.createOmemoSession(OmemoManager omemoManager,
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> omemoStore,
OmemoDevice from) |
OmemoSession<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> |
SignalOmemoKeyUtil.createOmemoSession(OmemoManager omemoManager,
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> omemoStore,
OmemoDevice contact,
org.whispersystems.libsignal.IdentityKey identityKey) |
org.whispersystems.libsignal.SignalProtocolAddress |
SignalOmemoKeyUtil.omemoDeviceAsAddress(OmemoDevice contact) |
protected void |
SignalOmemoService.processBundle(OmemoManager omemoManager,
org.whispersystems.libsignal.state.PreKeyBundle preKeyBundle,
OmemoDevice contact) |
Modifier and Type | Method and Description |
---|---|
abstract OmemoDevice |
OmemoKeyUtil.addressAsOmemoDevice(T_Addr address)
Convert a crypto-lib specific contact object into an OmemoDevice.
|
Modifier and Type | Method and Description |
---|---|
void |
OmemoMessageBuilder.addRecipient(OmemoDevice device)
Add a new recipient device to the message.
|
void |
OmemoMessageBuilder.addRecipient(OmemoDevice device,
boolean ignoreTrust)
Add a new recipient device to the message.
|
abstract T_Bundle |
OmemoKeyUtil.bundleFromOmemoBundle(OmemoBundleVAxolotlElement bundle,
OmemoDevice contact,
int keyId)
Build a crypto-lib specific PreKeyBundle (T_Bundle) using a PreKey from the OmemoBundleElement 'bundle'.
|
HashMap<Integer,T_Bundle> |
OmemoKeyUtil.Bundle.bundles(OmemoBundleVAxolotlElement bundle,
OmemoDevice contact)
Break up the OmemoBundleElement into a list of crypto-lib specific bundles (T_PreKey).
|
abstract OmemoSession<T_IdKeyPair,T_IdKey,T_PreKey,T_SigPreKey,T_Sess,T_Addr,T_ECPub,T_Bundle,T_Ciph> |
OmemoKeyUtil.createOmemoSession(OmemoManager omemoManager,
OmemoStore<T_IdKeyPair,T_IdKey,T_PreKey,T_SigPreKey,T_Sess,T_Addr,T_ECPub,T_Bundle,T_Ciph> omemoStore,
OmemoDevice from)
Create a new crypto-specific Session object.
|
abstract OmemoSession<T_IdKeyPair,T_IdKey,T_PreKey,T_SigPreKey,T_Sess,T_Addr,T_ECPub,T_Bundle,T_Ciph> |
OmemoKeyUtil.createOmemoSession(OmemoManager omemoManager,
OmemoStore<T_IdKeyPair,T_IdKey,T_PreKey,T_SigPreKey,T_Sess,T_Addr,T_ECPub,T_Bundle,T_Ciph> omemoStore,
OmemoDevice device,
T_IdKey identityKey)
Create a new concrete OmemoSession with a contact.
|
abstract T_Addr |
OmemoKeyUtil.omemoDeviceAsAddress(OmemoDevice contact)
Convert an OmemoDevice to a crypto-lib specific contact format.
|