Package | Description |
---|---|
org.jivesoftware.smackx.omemo |
Classes and interfaces for OMEMO Encryption.
|
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 |
---|---|
static OmemoManager |
OmemoManager.getInstanceFor(XMPPConnection connection)
Get an instance of the OmemoManager for the given connection.
|
static OmemoManager |
OmemoManager.getInstanceFor(XMPPConnection connection,
Integer deviceId)
Get an instance of the OmemoManager for the given connection and deviceId.
|
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) |
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) |
abstract Date |
OmemoStore.getDateOfLastSignedPreKeyRenewal(OmemoManager omemoManager)
Get the date in millis of the last time the signed preKey was renewed.
|
Date |
FileBasedOmemoStore.getDateOfLastSignedPreKeyRenewal(OmemoManager omemoManager) |
OmemoFingerprint |
OmemoStore.getFingerprint(OmemoManager omemoManager)
Return our identityKeys fingerprint.
|
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.
|
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?
|
abstract boolean |
OmemoStore.isFreshInstallation(OmemoManager omemoManager)
Return true if this is a fresh installation.
|
boolean |
FileBasedOmemoStore.isFreshInstallation(OmemoManager omemoManager) |
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 HashMap<Integer,T_Sess> |
OmemoStore.loadAllRawSessionsOf(OmemoManager omemoManager,
BareJid contact)
Load all crypto-lib specific session objects of contact 'contact'.
|
HashMap<Integer,T_Sess> |
FileBasedOmemoStore.loadAllRawSessionsOf(OmemoManager omemoManager,
BareJid contact) |
abstract CachedDeviceList |
OmemoStore.loadCachedDeviceList(OmemoManager omemoManager,
BareJid contact)
Load a list of deviceIds from contact 'contact' from the local cache.
|
CachedDeviceList |
FileBasedOmemoStore.loadCachedDeviceList(OmemoManager omemoManager,
BareJid contact) |
abstract int |
OmemoStore.loadCurrentSignedPreKeyId(OmemoManager omemoManager)
Return the id of the currently used signed preKey.
|
int |
FileBasedOmemoStore.loadCurrentSignedPreKeyId(OmemoManager omemoManager) |
abstract int |
OmemoStore.loadLastPreKeyId(OmemoManager omemoManager)
Return the id of the last generated preKey.
|
int |
FileBasedOmemoStore.loadLastPreKeyId(OmemoManager omemoManager) |
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_IdKeyPair |
OmemoStore.loadOmemoIdentityKeyPair(OmemoManager omemoManager)
Load our identityKeyPair from storage.
|
T_IdKeyPair |
FileBasedOmemoStore.loadOmemoIdentityKeyPair(OmemoManager omemoManager) |
abstract T_PreKey |
OmemoStore.loadOmemoPreKey(OmemoManager omemoManager,
int preKeyId)
Load the preKey with id 'preKeyId' from storage.
|
T_PreKey |
FileBasedOmemoStore.loadOmemoPreKey(OmemoManager omemoManager,
int preKeyId) |
abstract HashMap<Integer,T_PreKey> |
OmemoStore.loadOmemoPreKeys(OmemoManager omemoManager)
Return all our current OmemoPreKeys.
|
HashMap<Integer,T_PreKey> |
FileBasedOmemoStore.loadOmemoPreKeys(OmemoManager omemoManager) |
abstract T_SigPreKey |
OmemoStore.loadOmemoSignedPreKey(OmemoManager omemoManager,
int signedPreKeyId)
Return the signedPreKey with the id 'singedPreKeyId'.
|
T_SigPreKey |
FileBasedOmemoStore.loadOmemoSignedPreKey(OmemoManager omemoManager,
int signedPreKeyId) |
abstract HashMap<Integer,T_SigPreKey> |
OmemoStore.loadOmemoSignedPreKeys(OmemoManager omemoManager)
Load all our signed PreKeys.
|
HashMap<Integer,T_SigPreKey> |
FileBasedOmemoStore.loadOmemoSignedPreKeys(OmemoManager omemoManager) |
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.purgeOwnDeviceKeys(OmemoManager omemoManager)
Delete this device's IdentityKey, PreKeys, SignedPreKeys and Sessions.
|
void |
FileBasedOmemoStore.purgeOwnDeviceKeys(OmemoManager omemoManager) |
abstract void |
OmemoStore.removeAllRawSessionsOf(OmemoManager omemoManager,
BareJid contact)
Remove all crypto-lib specific session of a contact.
|
void |
FileBasedOmemoStore.removeAllRawSessionsOf(OmemoManager omemoManager,
BareJid contact) |
abstract void |
OmemoStore.removeOmemoPreKey(OmemoManager omemoManager,
int preKeyId)
remove a preKey from storage.
|
void |
FileBasedOmemoStore.removeOmemoPreKey(OmemoManager omemoManager,
int preKeyId) |
abstract void |
OmemoStore.removeOmemoSignedPreKey(OmemoManager omemoManager,
int signedPreKeyId)
Remove a signedPreKey from storage.
|
void |
FileBasedOmemoStore.removeOmemoSignedPreKey(OmemoManager omemoManager,
int signedPreKeyId) |
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 |
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) |
void |
OmemoStore.setDateOfLastSignedPreKeyRenewal(OmemoManager omemoManager)
Store the date of the last preKey renewal in the omemoStore.
|
abstract void |
OmemoStore.setDateOfLastSignedPreKeyRenewal(OmemoManager omemoManager,
Date date)
Set the date in millis of the last time the signed preKey was renewed.
|
void |
FileBasedOmemoStore.setDateOfLastSignedPreKeyRenewal(OmemoManager omemoManager,
Date date) |
abstract void |
OmemoStore.storeCachedDeviceList(OmemoManager omemoManager,
BareJid contact,
CachedDeviceList deviceList)
Store the DeviceList of the contact in local storage.
|
void |
FileBasedOmemoStore.storeCachedDeviceList(OmemoManager omemoManager,
BareJid contact,
CachedDeviceList deviceList) |
abstract void |
OmemoStore.storeCurrentSignedPreKeyId(OmemoManager omemoManager,
int currentSignedPreKeyId)
Store the id of the currently used signedPreKey.
|
void |
FileBasedOmemoStore.storeCurrentSignedPreKeyId(OmemoManager omemoManager,
int currentSignedPreKeyId) |
abstract void |
OmemoStore.storeLastPreKeyId(OmemoManager omemoManager,
int currentPreKeyId)
Store the id of the last preKey we generated.
|
void |
FileBasedOmemoStore.storeLastPreKeyId(OmemoManager omemoManager,
int currentPreKeyId) |
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.storeOmemoIdentityKeyPair(OmemoManager omemoManager,
T_IdKeyPair identityKeyPair)
Store our identityKeyPair in storage.
|
void |
FileBasedOmemoStore.storeOmemoIdentityKeyPair(OmemoManager omemoManager,
T_IdKeyPair identityKeyPair) |
abstract void |
OmemoStore.storeOmemoPreKey(OmemoManager omemoManager,
int preKeyId,
T_PreKey preKey)
Store a PreKey in storage.
|
void |
FileBasedOmemoStore.storeOmemoPreKey(OmemoManager omemoManager,
int preKeyId,
T_PreKey t_preKey) |
void |
OmemoStore.storeOmemoPreKeys(OmemoManager omemoManager,
HashMap<Integer,T_PreKey> preKeyHashMap)
Store a whole bunch of preKeys.
|
abstract void |
OmemoStore.storeOmemoSignedPreKey(OmemoManager omemoManager,
int signedPreKeyId,
T_SigPreKey signedPreKey)
Store a signedPreKey in storage.
|
void |
FileBasedOmemoStore.storeOmemoSignedPreKey(OmemoManager omemoManager,
int signedPreKeyId,
T_SigPreKey signedPreKey) |
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) |
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 | Field and Description |
---|---|
protected OmemoManager |
OmemoSession.omemoManager |
Constructor and Description |
---|
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 |
---|---|
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) |
protected void |
SignalOmemoService.processBundle(OmemoManager omemoManager,
org.whispersystems.libsignal.state.PreKeyBundle preKeyBundle,
OmemoDevice contact) |
Constructor and Description |
---|
SignalOmemoStoreConnector(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> store) |
Modifier and Type | Method and Description |
---|---|
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.
|
Constructor and Description |
---|
OmemoMessageBuilder(OmemoManager omemoManager,
OmemoStore<T_IdKeyPair,T_IdKey,T_PreKey,T_SigPreKey,T_Sess,T_Addr,T_ECPub,T_Bundle,T_Ciph> omemoStore,
byte[] aesKey,
byte[] iv)
Create a OmemoMessageBuilder.
|
OmemoMessageBuilder(OmemoManager omemoManager,
OmemoStore<T_IdKeyPair,T_IdKey,T_PreKey,T_SigPreKey,T_Sess,T_Addr,T_ECPub,T_Bundle,T_Ciph> omemoStore,
String message)
Create a new OmemoMessageBuilder with random IV and AES key.
|