public class OmemoModule extends Object implements XmppModule, ContextAware, 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() |
public static final String DEVICELIST_NODE
public static final String AUTOCREATE_OMEMO_SESSION
public static JaXMPPSignalProtocolStore getSignalProtocolStore(SessionObject sessionObject)
public static void setSignalProtocolStore(SessionObject sessionObject, JaXMPPSignalProtocolStore store)
public OmemoModule.CipherFactory getCustomCipherFactory()
public void setCustomCipherFactory(OmemoModule.CipherFactory customCipherFactory)
public Criteria getCriteria()
XmppModule
getCriteria
in interface XmppModule
public String[] getFeatures()
XmppModule
Returns features what are implemented by Module.
getFeatures
in interface XmppModule
public void process(Element element) throws JaxmppException
XmppModule
process
in interface XmppModule
element
- incoming XMPP stanzaJaxmppException
public void setContext(Context context)
setContext
in interface ContextAware
public void afterRegister()
InitializingModule
afterRegister
in interface InitializingModule
public void subscribeForDeviceList(BareJID jid) throws JaxmppException
JaxmppException
public void beforeRegister()
InitializingModule
beforeRegister
in interface InitializingModule
public void beforeUnregister()
InitializingModule
beforeUnregister
in interface InitializingModule
public void publishDeviceList() throws JaxmppException
JaxmppException
public void getKeys(BareJID jid, OmemoModule.KeysRetrieverHandler handler) throws JaxmppException
JaxmppException
public XmppOMEMOSession getOMEMOSession(BareJID jid)
public XmppOMEMOSession createOMEMOSession(BareJID jid)
public void createOMEMOSession(BareJID jid, OmemoModule.CreateOMEMOSessionHandler handler) throws JaxmppException
JaxmppException
public Extension getExtension()
public boolean isOMEMORequired(BareJID jid)
public XmppOMEMOSession getOMEMOSession(BareJID jid, boolean createIfNotExists)
Copyright © 2006–2022 Tigase. All rights reserved.