net.java.otr4j
Class OtrEngineImpl

Package class diagram package OtrEngineImpl
java.lang.Object
  extended by net.java.otr4j.OtrEngineImpl
All Implemented Interfaces:
OtrEngine

public class OtrEngineImpl
extends Object
implements OtrEngine


Constructor Summary
OtrEngineImpl(OtrEngineHost host)
           
 
Method Summary
 void addOtrEngineListener(OtrEngineListener l)
           
 void endSession(SessionID sessionID)
          Ends the Off-the-Record session, if exists.
 PublicKey getRemotePublicKey(SessionID sessionID)
           
 SessionStatus getSessionStatus(SessionID sessionID)
           
 void refreshSession(SessionID sessionID)
          Stops/Starts the Off-the-Record session.
 void removeOtrEngineListener(OtrEngineListener l)
           
 void startSession(SessionID sessionID)
          Starts an Off-the-Record session, if there is no active one.
 String transformReceiving(SessionID sessionID, String msgText)
           
 String transformSending(SessionID sessionID, String msgText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OtrEngineImpl

public OtrEngineImpl(OtrEngineHost host)
Method Detail

getSessionStatus

public SessionStatus getSessionStatus(SessionID sessionID)
Specified by:
getSessionStatus in interface OtrEngine
Parameters:
sessionID - The session identifier.
Returns:
The status of an Off-the-Record session.

transformReceiving

public String transformReceiving(SessionID sessionID,
                                 String msgText)
                          throws OtrException
Specified by:
transformReceiving in interface OtrEngine
Parameters:
sessionID - The session identifier.
msgText - The message content to be transformed.
Returns:
The transformed message content.
Throws:
OtrException

transformSending

public String transformSending(SessionID sessionID,
                               String msgText)
                        throws OtrException
Specified by:
transformSending in interface OtrEngine
Parameters:
sessionID - The session identifier.
msgText - The message content to be transformed.
Returns:
The transformed message content.
Throws:
OtrException

endSession

public void endSession(SessionID sessionID)
                throws OtrException
Description copied from interface: OtrEngine
Ends the Off-the-Record session, if exists.

Specified by:
endSession in interface OtrEngine
Parameters:
sessionID - The session identifier.
Throws:
OtrException

startSession

public void startSession(SessionID sessionID)
                  throws OtrException
Description copied from interface: OtrEngine
Starts an Off-the-Record session, if there is no active one.

Specified by:
startSession in interface OtrEngine
Parameters:
sessionID - The session identifier.
Throws:
OtrException

refreshSession

public void refreshSession(SessionID sessionID)
                    throws OtrException
Description copied from interface: OtrEngine
Stops/Starts the Off-the-Record session.

Specified by:
refreshSession in interface OtrEngine
Parameters:
sessionID - The session identifier.
Throws:
OtrException

getRemotePublicKey

public PublicKey getRemotePublicKey(SessionID sessionID)
Specified by:
getRemotePublicKey in interface OtrEngine
Parameters:
sessionID - The session identifier.
Returns:
The remote public key.

addOtrEngineListener

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

removeOtrEngineListener

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


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