public final class SignalOmemoService extends OmemoService<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>
LOGGER, omemoStore| Modifier and Type | Method and Description |
|---|---|
static void |
acknowledgeLicense() |
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> |
createDefaultOmemoStoreBackend()
Create a default OmemoStore object.
|
protected void |
processBundle(OmemoManager omemoManager,
org.whispersystems.libsignal.state.PreKeyBundle preKeyBundle,
OmemoDevice contact)
Process a received bundle.
|
static void |
setup() |
buildSessionFromOmemoBundle, checkAvailableAlgorithms, getInstance, getOmemoRatchetUpdateMessage, getOmemoStoreBackend, isServiceRegistered, sendOmemoRatchetUpdateMessage, setInstance, setOmemoStoreBackendpublic static void setup() throws java.security.InvalidKeyException, XMPPException.XMPPErrorException, javax.crypto.NoSuchPaddingException, java.security.InvalidAlgorithmParameterException, java.io.UnsupportedEncodingException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException, java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, SmackException, java.lang.InterruptedException, CorruptedOmemoKeyException
java.security.InvalidKeyExceptionXMPPException.XMPPErrorExceptionjavax.crypto.NoSuchPaddingExceptionjava.security.InvalidAlgorithmParameterExceptionjava.io.UnsupportedEncodingExceptionjavax.crypto.IllegalBlockSizeExceptionjavax.crypto.BadPaddingExceptionjava.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionSmackExceptionjava.lang.InterruptedExceptionCorruptedOmemoKeyExceptionpublic 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> createDefaultOmemoStoreBackend()
OmemoServicecreateDefaultOmemoStoreBackend in class OmemoService<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>public static void acknowledgeLicense()
protected void processBundle(OmemoManager omemoManager, org.whispersystems.libsignal.state.PreKeyBundle preKeyBundle, OmemoDevice contact) throws CorruptedOmemoKeyException
OmemoServiceprocessBundle in class OmemoService<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>omemoManager - omemoManager that will process the bundlepreKeyBundle - T_Bundle (depends on used Signal/Olm library)contact - OmemoDeviceCorruptedOmemoKeyException