Session.OTRv| Constructor and Description |
|---|
SessionImpl(SessionID sessionID,
OtrEngineHost listener) |
public SessionImpl(SessionID sessionID, OtrEngineHost listener)
public BigInteger getS()
public SessionStatus getSessionStatus()
getSessionStatus in interface Sessionpublic SessionID getSessionID()
getSessionID in interface Sessionpublic String transformReceiving(String msgText) throws OtrException
transformReceiving in interface SessionOtrExceptionpublic void injectMessage(AbstractMessage m) throws OtrException
injectMessage in interface SessionOtrExceptionpublic String[] transformSending(String msgText) throws OtrException
transformSending in interface SessionOtrExceptionpublic String[] transformSending(String msgText, List<TLV> tlvs) throws OtrException
transformSending in interface SessionOtrExceptionpublic void startSession()
throws OtrException
startSession in interface SessionOtrExceptionpublic void endSession()
throws OtrException
endSession in interface SessionOtrExceptionpublic void refreshSession()
throws OtrException
refreshSession in interface SessionOtrExceptionpublic PublicKey getRemotePublicKey()
getRemotePublicKey in interface Sessionpublic void addOtrEngineListener(OtrEngineListener l)
addOtrEngineListener in interface Sessionpublic void removeOtrEngineListener(OtrEngineListener l)
removeOtrEngineListener in interface Sessionpublic OtrPolicy getSessionPolicy()
getSessionPolicy in interface Sessionpublic KeyPair getLocalKeyPair() throws OtrException
getLocalKeyPair in interface SessionOtrExceptionpublic void initSmp(String question, String secret) throws OtrException
initSmp in interface SessionOtrExceptionpublic void respondSmp(String question, String secret) throws OtrException
respondSmp in interface SessionOtrExceptionpublic void abortSmp()
throws OtrException
abortSmp in interface SessionOtrExceptionpublic boolean isSmpInProgress()
isSmpInProgress in interface Sessionpublic InstanceTag getSenderInstanceTag()
getSenderInstanceTag in interface Sessionpublic InstanceTag getReceiverInstanceTag()
getReceiverInstanceTag in interface Sessionpublic void setReceiverInstanceTag(InstanceTag receiverTag)
setReceiverInstanceTag in interface Sessionpublic void setProtocolVersion(int protocolVersion)
setProtocolVersion in interface Sessionpublic int getProtocolVersion()
getProtocolVersion in interface Sessionpublic List<Session> getInstances()
getInstances in interface Sessionpublic boolean setOutgoingInstance(InstanceTag tag)
setOutgoingInstance in interface Sessionpublic void respondSmp(InstanceTag receiverTag, String question, String secret) throws OtrException
respondSmp in interface SessionOtrExceptionpublic SessionStatus getSessionStatus(InstanceTag tag)
getSessionStatus in interface Sessionpublic PublicKey getRemotePublicKey(InstanceTag tag)
getRemotePublicKey in interface Sessionpublic Session getOutgoingInstance()
getOutgoingInstance in interface SessionCopyright © 2015. All rights reserved.