public class OmemoModule extends Object implements tigase.jaxmpp.core.client.XmppModule, tigase.jaxmpp.core.client.xmpp.modules.ContextAware, tigase.jaxmpp.core.client.xmpp.modules.InitializingModule
| Modifier and Type | Class and Description |
|---|---|
static interface |
OmemoModule.CipherFactory |
static interface |
OmemoModule.CreateOMEMOSessionHandler |
static interface |
OmemoModule.KeysRetrieverHandler |
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTOCREATE_OMEMO_SESSION |
static String |
DEVICELIST_NODE |
| Constructor and Description |
|---|
OmemoModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRegister() |
void |
beforeRegister() |
void |
beforeUnregister() |
XmppOMEMOSession |
createOMEMOSession(tigase.jaxmpp.core.client.BareJID jid) |
void |
createOMEMOSession(tigase.jaxmpp.core.client.BareJID jid,
OmemoModule.CreateOMEMOSessionHandler handler) |
tigase.jaxmpp.core.client.criteria.Criteria |
getCriteria() |
OmemoModule.CipherFactory |
getCustomCipherFactory() |
tigase.jaxmpp.core.client.xmpp.modules.extensions.Extension |
getExtension() |
String[] |
getFeatures() |
void |
getKeys(tigase.jaxmpp.core.client.BareJID jid,
OmemoModule.KeysRetrieverHandler handler) |
XmppOMEMOSession |
getOMEMOSession(tigase.jaxmpp.core.client.BareJID jid) |
XmppOMEMOSession |
getOMEMOSession(tigase.jaxmpp.core.client.BareJID jid,
boolean createIfNotExists) |
static JaXMPPSignalProtocolStore |
getSignalProtocolStore(tigase.jaxmpp.core.client.SessionObject sessionObject) |
boolean |
isOMEMORequired(tigase.jaxmpp.core.client.BareJID jid) |
void |
process(tigase.jaxmpp.core.client.xml.Element element) |
void |
publishDeviceList() |
void |
setContext(tigase.jaxmpp.core.client.Context context) |
void |
setCustomCipherFactory(OmemoModule.CipherFactory customCipherFactory) |
static void |
setSignalProtocolStore(tigase.jaxmpp.core.client.SessionObject sessionObject,
JaXMPPSignalProtocolStore store) |
void |
subscribeForDeviceList(tigase.jaxmpp.core.client.BareJID jid) |
public static final String DEVICELIST_NODE
public static final String AUTOCREATE_OMEMO_SESSION
public static JaXMPPSignalProtocolStore getSignalProtocolStore(tigase.jaxmpp.core.client.SessionObject sessionObject)
public static void setSignalProtocolStore(tigase.jaxmpp.core.client.SessionObject sessionObject,
JaXMPPSignalProtocolStore store)
public OmemoModule.CipherFactory getCustomCipherFactory()
public void setCustomCipherFactory(OmemoModule.CipherFactory customCipherFactory)
public tigase.jaxmpp.core.client.criteria.Criteria getCriteria()
getCriteria in interface tigase.jaxmpp.core.client.XmppModulepublic String[] getFeatures()
getFeatures in interface tigase.jaxmpp.core.client.XmppModulepublic void process(tigase.jaxmpp.core.client.xml.Element element)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
process in interface tigase.jaxmpp.core.client.XmppModuletigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void setContext(tigase.jaxmpp.core.client.Context context)
setContext in interface tigase.jaxmpp.core.client.xmpp.modules.ContextAwarepublic void afterRegister()
afterRegister in interface tigase.jaxmpp.core.client.xmpp.modules.InitializingModulepublic void subscribeForDeviceList(tigase.jaxmpp.core.client.BareJID jid)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void beforeRegister()
beforeRegister in interface tigase.jaxmpp.core.client.xmpp.modules.InitializingModulepublic void beforeUnregister()
beforeUnregister in interface tigase.jaxmpp.core.client.xmpp.modules.InitializingModulepublic void publishDeviceList()
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void getKeys(tigase.jaxmpp.core.client.BareJID jid,
OmemoModule.KeysRetrieverHandler handler)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic XmppOMEMOSession getOMEMOSession(tigase.jaxmpp.core.client.BareJID jid)
public XmppOMEMOSession createOMEMOSession(tigase.jaxmpp.core.client.BareJID jid)
public void createOMEMOSession(tigase.jaxmpp.core.client.BareJID jid,
OmemoModule.CreateOMEMOSessionHandler handler)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic tigase.jaxmpp.core.client.xmpp.modules.extensions.Extension getExtension()
public boolean isOMEMORequired(tigase.jaxmpp.core.client.BareJID jid)
public XmppOMEMOSession getOMEMOSession(tigase.jaxmpp.core.client.BareJID jid, boolean createIfNotExists)
Copyright © 2006–2022 Tigase. All rights reserved.