2014-11-12 15:15:38 +00:00
|
|
|
package eu.siacs.conversations.crypto.sasl;
|
|
|
|
|
|
|
|
import java.security.SecureRandom;
|
|
|
|
|
|
|
|
import eu.siacs.conversations.entities.Account;
|
|
|
|
import eu.siacs.conversations.xml.TagWriter;
|
|
|
|
|
|
|
|
public abstract class SaslMechanism {
|
|
|
|
|
2014-11-12 20:35:44 +00:00
|
|
|
final protected TagWriter tagWriter;
|
|
|
|
final protected Account account;
|
|
|
|
final protected SecureRandom rng;
|
2014-11-12 15:15:38 +00:00
|
|
|
|
2014-11-12 20:35:44 +00:00
|
|
|
public SaslMechanism(final TagWriter tagWriter, final Account account, final SecureRandom rng) {
|
|
|
|
this.tagWriter = tagWriter;
|
|
|
|
this.account = account;
|
|
|
|
this.rng = rng;
|
|
|
|
}
|
2014-11-12 15:15:38 +00:00
|
|
|
|
2014-11-12 20:35:44 +00:00
|
|
|
public String getClientFirstMessage() {
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
public String getResponse(final String challenge) throws AuthenticationException {
|
|
|
|
return "";
|
|
|
|
}
|
2014-11-12 15:15:38 +00:00
|
|
|
}
|