|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
com.beem.project.beem.otr
Class BeemOtrManager

java.lang.Objectcom.beem.project.beem.otr.BeemOtrManager
- All Implemented Interfaces:
- OtrEngineHost
public class BeemOtrManager
- extends Object
- implements OtrEngineHost
- extends Object
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:
injectMessagein interfaceOtrEngineHost
showWarning
public void showWarning(SessionID sessionID, String warning)
- Specified by:
showWarningin interfaceOtrEngineHost
showError
public void showError(SessionID sessionID, String error)
- Specified by:
showErrorin interfaceOtrEngineHost
getSessionPolicy
public OtrPolicy getSessionPolicy(SessionID sessionID)
- Specified by:
getSessionPolicyin interfaceOtrEngineHost
getKeyPair
public KeyPair getKeyPair(SessionID sessionID)
- Specified by:
getKeyPairin interfaceOtrEngineHost
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2009 Beem-project.com. All Rights Reserved.

com.beem.project.beem.otr.BeemOtrManager