public class OtrSm extends Object
| Constructor and Description |
|---|
OtrSm(Session session,
OtrEngineHost engineHost)
Construct an OTR Socialist Millionaire handler object.
|
| Modifier and Type | Method and Description |
|---|---|
List<TLV> |
abortSmp()
Create an abort TLV and reset our state.
|
boolean |
doProcessTlv(TLV tlv) |
List<TLV> |
initRespondSmp(String question,
String secret,
boolean initiating)
Respond to or initiate an SMP negotiation
|
boolean |
isSmpInProgress() |
void |
reset() |
public OtrSm(Session session, OtrEngineHost engineHost)
session - The session reference.engineHost - The host where we can present messages or ask for the shared secret.public void reset()
public List<TLV> initRespondSmp(String question, String secret, boolean initiating) throws OtrException
question - The question to present to the peer, if initiating.
May be null for no question.
If not initiating, then it should be received question
in order to clarify whether this is shared secret verification.secret - The secret.initiating - Whether we are initiating or responding to an initial request.OtrException - MVN_PASS_JAVADOC_INSPECTIONpublic List<TLV> abortSmp() throws OtrException
OtrException - MVN_PASS_JAVADOC_INSPECTIONpublic boolean isSmpInProgress()
public boolean doProcessTlv(TLV tlv) throws OtrException
OtrExceptionCopyright © 2015. All rights reserved.