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, setOmemoStoreBackend
public static void setup() throws InvalidKeyException, XMPPException.XMPPErrorException, NoSuchPaddingException, InvalidAlgorithmParameterException, UnsupportedEncodingException, IllegalBlockSizeException, BadPaddingException, NoSuchAlgorithmException, NoSuchProviderException, SmackException, InterruptedException, CorruptedOmemoKeyException
InvalidKeyException
XMPPException.XMPPErrorException
NoSuchPaddingException
InvalidAlgorithmParameterException
UnsupportedEncodingException
IllegalBlockSizeException
BadPaddingException
NoSuchAlgorithmException
NoSuchProviderException
SmackException
InterruptedException
CorruptedOmemoKeyException
public 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()
OmemoService
createDefaultOmemoStoreBackend
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
OmemoService
processBundle
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