net.java.otr4j
Class OtrEngineImpl
java.lang.Object
net.java.otr4j.OtrEngineImpl
- All Implemented Interfaces:
- OtrEngine
public class OtrEngineImpl
- extends Object
- implements OtrEngine
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OtrEngineImpl
public OtrEngineImpl(OtrEngineHost host)
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.