net.java.otr4j
Interface OtrEngine
- All Known Implementing Classes:
- OtrEngineImpl
public interface OtrEngine
transformReceiving
String transformReceiving(SessionID sessionID,
String content)
throws OtrException
- Parameters:
sessionID - The session identifier.content - The message content to be transformed.
- Returns:
- The transformed message content.
- Throws:
OtrException
transformSending
String transformSending(SessionID sessionID,
String content)
throws OtrException
- Parameters:
sessionID - The session identifier.content - The message content to be transformed.
- Returns:
- The transformed message content.
- Throws:
OtrException
startSession
void startSession(SessionID sessionID)
throws OtrException
- Starts an Off-the-Record session, if there is no active one.
- Parameters:
sessionID - The session identifier.
- Throws:
OtrException
endSession
void endSession(SessionID sessionID)
throws OtrException
- Ends the Off-the-Record session, if exists.
- Parameters:
sessionID - The session identifier.
- Throws:
OtrException
refreshSession
void refreshSession(SessionID sessionID)
throws OtrException
- Stops/Starts the Off-the-Record session.
- Parameters:
sessionID - The session identifier.
- Throws:
OtrException
getSessionStatus
SessionStatus getSessionStatus(SessionID sessionID)
- Parameters:
sessionID - The session identifier.
- Returns:
- The status of an Off-the-Record session.
getRemotePublicKey
PublicKey getRemotePublicKey(SessionID sessionID)
- Parameters:
sessionID - The session identifier.
- Returns:
- The remote public key.
addOtrEngineListener
void addOtrEngineListener(OtrEngineListener l)
removeOtrEngineListener
void removeOtrEngineListener(OtrEngineListener l)
Copyright © 2009 Beem-project.com. All Rights Reserved.