|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScOtrEngine
This interface must be implemented by classes that provide the Off-the-Record functionality.
| Method Summary | |
|---|---|
void |
addListener(ScOtrEngineListener listener)
Registers an ScOtrEngineListener. |
void |
endSession(Contact contact)
Ends the Off-the-Record session for the given Contact, if it is
not already started. |
net.java.otr4j.OtrPolicy |
getContactPolicy(Contact contact)
Gets a Contact specific policy. |
net.java.otr4j.OtrPolicy |
getGlobalPolicy()
Gets the global OtrPolicy. |
net.java.otr4j.session.SessionStatus |
getSessionStatus(Contact contact)
Gets the SessionStatus for the given Contact. |
boolean |
isMessageUIDInjected(String messageUID)
Gets weather the passed in messageUID is injected by the engine or not. |
void |
launchHelp()
Launches the help page. |
void |
refreshSession(Contact contact)
Refreshes the Off-the-Record session for the given Contact. |
void |
removeListener(ScOtrEngineListener listener)
Unregisters an ScOtrEngineListener. |
void |
setContactPolicy(Contact contact,
net.java.otr4j.OtrPolicy policy)
Sets the contact specific policy |
void |
setGlobalPolicy(net.java.otr4j.OtrPolicy policy)
Sets the global policy. |
void |
startSession(Contact contact)
Starts the Off-the-Record session for the given Contact, if it's
not already started. |
String |
transformReceiving(Contact contact,
String content)
Transforms an incoming message. |
String |
transformSending(Contact contact,
String content)
Transforms an outgoing message. |
| Method Detail |
|---|
String transformSending(Contact contact,
String content)
contact - the destination Contact.content - the original message content.
String transformReceiving(Contact contact,
String content)
contact - the source Contact.content - the original message content.
void startSession(Contact contact)
Contact, if it's
not already started.
contact - the Contact with whom we want to start an OTR
session.void endSession(Contact contact)
Contact, if it is
not already started.
contact - the Contact with whom we want to end the OTR
session.void refreshSession(Contact contact)
Contact. If
the session does not exist, a new session is established.
contact - the Contact with whom we want to refresh the OTR
session.net.java.otr4j.session.SessionStatus getSessionStatus(Contact contact)
SessionStatus for the given Contact.
contact - the Contact whose SessionStatus we are
interested in.
SessionStatus.boolean isMessageUIDInjected(String messageUID)
messageUID - the messageUID which is to be determined whether it is
injected by the engine or not
void addListener(ScOtrEngineListener listener)
ScOtrEngineListener.
listener - the ScOtrEngineListener to register.void removeListener(ScOtrEngineListener listener)
ScOtrEngineListener.
listener - the ScOtrEngineListener to unregister.net.java.otr4j.OtrPolicy getGlobalPolicy()
OtrPolicy.
OtrPolicynet.java.otr4j.OtrPolicy getContactPolicy(Contact contact)
Contact specific policy.
contact - the Contact whose policy we want.
Contact specific OTR policy. If the specified
Contact has no policy, the global policy is returned.void setGlobalPolicy(net.java.otr4j.OtrPolicy policy)
policy - the global policy
void setContactPolicy(Contact contact,
net.java.otr4j.OtrPolicy policy)
contact - the Contact whose policy we want to setpolicy - the OtrPolicyvoid launchHelp()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||