net.java.otr4j.session
Class SessionImpl

Package class diagram package SessionImpl
java.lang.Object
  extended by net.java.otr4j.session.SessionImpl
All Implemented Interfaces:
Session

public class SessionImpl
extends Object
implements Session


Constructor Summary
SessionImpl(SessionID sessionID, OtrEngineHost listener)
           
 
Method Summary
 void addOtrEngineListener(OtrEngineListener l)
           
 void endSession()
           
 KeyPair getLocalKeyPair()
           
 PublicKey getRemotePublicKey()
           
 SessionID getSessionID()
           
 OtrPolicy getSessionPolicy()
           
 SessionStatus getSessionStatus()
           
 void injectMessage(AbstractMessage m)
           
 void refreshSession()
           
 void removeOtrEngineListener(OtrEngineListener l)
           
 void startSession()
           
 String transformReceiving(String msgText)
           
 String transformSending(String msgText, List<net.java.otr4j.session.SessionImpl.TLV> tlvs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionImpl

public SessionImpl(SessionID sessionID,
                   OtrEngineHost listener)
Method Detail

getSessionStatus

public SessionStatus getSessionStatus()
Specified by:
getSessionStatus in interface Session

getSessionID

public SessionID getSessionID()
Specified by:
getSessionID in interface Session

transformReceiving

public String transformReceiving(String msgText)
                          throws OtrException
Specified by:
transformReceiving in interface Session
Throws:
OtrException

injectMessage

public void injectMessage(AbstractMessage m)
                   throws OtrException
Specified by:
injectMessage in interface Session
Throws:
OtrException

transformSending

public String transformSending(String msgText,
                               List<net.java.otr4j.session.SessionImpl.TLV> tlvs)
                        throws OtrException
Specified by:
transformSending in interface Session
Throws:
OtrException

startSession

public void startSession()
                  throws OtrException
Specified by:
startSession in interface Session
Throws:
OtrException

endSession

public void endSession()
                throws OtrException
Specified by:
endSession in interface Session
Throws:
OtrException

refreshSession

public void refreshSession()
                    throws OtrException
Specified by:
refreshSession in interface Session
Throws:
OtrException

getRemotePublicKey

public PublicKey getRemotePublicKey()
Specified by:
getRemotePublicKey in interface Session

addOtrEngineListener

public void addOtrEngineListener(OtrEngineListener l)
Specified by:
addOtrEngineListener in interface Session

removeOtrEngineListener

public void removeOtrEngineListener(OtrEngineListener l)
Specified by:
removeOtrEngineListener in interface Session

getSessionPolicy

public OtrPolicy getSessionPolicy()
Specified by:
getSessionPolicy in interface Session

getLocalKeyPair

public KeyPair getLocalKeyPair()
Specified by:
getLocalKeyPair in interface Session


Copyright © 2009 Beem-project.com. All Rights Reserved.