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
package net.java.otr4j.session;
import java.security.KeyPair;
import java.security.PublicKey;
import java.util.List;
import net.java.otr4j.OtrEngineListener;
import net.java.otr4j.OtrException;
import net.java.otr4j.OtrPolicy;
import net.java.otr4j.io.messages.AbstractMessage;
import net.java.otr4j.session.SessionImpl.TLV;
public interface Session {
public abstract SessionStatus getSessionStatus();
public abstract SessionID getSessionID();
public abstract void injectMessage(AbstractMessage m) throws OtrException;
public abstract KeyPair getLocalKeyPair();
public abstract OtrPolicy getSessionPolicy();
public abstract String transformReceiving(String content)
throws OtrException;
public abstract String transformSending(String content, List<TLV> tlvs)
throws OtrException;
public abstract void startSession() throws OtrException;
public abstract void endSession() throws OtrException;
public abstract void refreshSession() throws OtrException;
public abstract PublicKey getRemotePublicKey();
public abstract void addOtrEngineListener(OtrEngineListener l);
public abstract void removeOtrEngineListener(OtrEngineListener l);
}