src/net/java/otr4j/OtrEngineHost.java
author Da Risk <da_risk@beem-project.com>
Wed, 06 Mar 2013 21:30:51 +0100
changeset 1027 8198b5e53cac
parent 911 ca323cff3ac9
permissions -rw-r--r--
Scram-Sha-1 mechanism : do not send authzid if it not absolutely necessary Some servers (ejabberd) reject the challenge if the scram attributes a (authzid) and n (authcid) are equals or they just don't handle the authzid. So we just don't send it if they are the same This fix #484

/*
 * otr4j, the open source java otr library.
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package net.java.otr4j;

import java.security.KeyPair;

import net.java.otr4j.session.SessionID;

/**
 * 
 * This interface should be implemented by the host application. It is required
 * for otr4j to work properly.
 * 
 * @author George Politis
 * 
 */
public abstract interface OtrEngineHost {
	public abstract void injectMessage(SessionID sessionID, String msg);

	public abstract void showWarning(SessionID sessionID, String warning);

	public abstract void showError(SessionID sessionID, String error);

	public abstract OtrPolicy getSessionPolicy(SessionID sessionID);

	public abstract KeyPair getKeyPair(SessionID sessionID);
}