com.beem.project.beem.otr
Class BeemOtrManager

Package class diagram package BeemOtrManager
java.lang.Object
  extended by com.beem.project.beem.otr.BeemOtrManager
All Implemented Interfaces:
OtrEngineHost

public class BeemOtrManager
extends Object
implements OtrEngineHost

BeemOtrManager.


Method Summary
 void addChat(SessionID sessionID, ChatAdapter chat)
          We must call addChat before stating a new otr session because we will need the chat instance for message injection.
static BeemOtrManager getInstance()
          BeemOtrManager.getInstance.
 KeyPair getKeyPair(SessionID sessionID)
           
 String getLocalFingerprint(SessionID sessionID)
          get the local fingerprint.
 OtrEngine getOtrManager()
          getOtrManager.
 String getRemoteFingerprint(SessionID sessionID)
          get the fingerprint of the remote part.
 OtrPolicy getSessionPolicy(SessionID sessionID)
           
 void injectMessage(SessionID sessionID, String msg)
           
 void removeChat(SessionID sessionID)
          We must remove the chat from the map after we ended the corresponding otr session.
 void showError(SessionID sessionID, String error)
           
 void showWarning(SessionID sessionID, String warning)
           
 void unverifyRemoteFingerprint(SessionID sessionId)
          unsetthe remote fingerprint as verified.
 void verifyRemoteFingerprint(SessionID sessionId)
          set the remote fingerprint as verified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOtrManager

public OtrEngine getOtrManager()
getOtrManager.

Returns:
OtrEngine

getInstance

public static BeemOtrManager getInstance()
BeemOtrManager.getInstance.

Returns:
BeemOtrManager

addChat

public void addChat(SessionID sessionID,
                    ChatAdapter chat)
We must call addChat before stating a new otr session because we will need the chat instance for message injection.

Parameters:
sessionID - the otr sessionID.
chat - instance.

removeChat

public void removeChat(SessionID sessionID)
We must remove the chat from the map after we ended the corresponding otr session.

Parameters:
sessionID - the otr sessionID to remove.

getRemoteFingerprint

public String getRemoteFingerprint(SessionID sessionID)
get the fingerprint of the remote part.

Parameters:
sessionID - the otr session
Returns:
a string containing the fingerprint

verifyRemoteFingerprint

public void verifyRemoteFingerprint(SessionID sessionId)
set the remote fingerprint as verified.

Parameters:
sessionId - the current otr session

unverifyRemoteFingerprint

public void unverifyRemoteFingerprint(SessionID sessionId)
unsetthe remote fingerprint as verified.

Parameters:
sessionId - the current otr session

getLocalFingerprint

public String getLocalFingerprint(SessionID sessionID)
get the local fingerprint.

Parameters:
sessionID - the otr session
Returns:
a string containing the fingerprint

injectMessage

public void injectMessage(SessionID sessionID,
                          String msg)
Specified by:
injectMessage in interface OtrEngineHost

showWarning

public void showWarning(SessionID sessionID,
                        String warning)
Specified by:
showWarning in interface OtrEngineHost

showError

public void showError(SessionID sessionID,
                      String error)
Specified by:
showError in interface OtrEngineHost

getSessionPolicy

public OtrPolicy getSessionPolicy(SessionID sessionID)
Specified by:
getSessionPolicy in interface OtrEngineHost

getKeyPair

public KeyPair getKeyPair(SessionID sessionID)
Specified by:
getKeyPair in interface OtrEngineHost


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