1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-26 16:22:06 +01:00

Allow to send empty responses.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2815 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2005-09-13 19:43:22 +00:00 committed by gato
parent 6dbc7c285e
commit fbe77866c5

View file

@ -79,7 +79,9 @@ public abstract class SASLMechanism {
StringBuffer stanza = new StringBuffer();
stanza.append("<response xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">");
String authenticationText = getChallengeResponse(StringUtils.decodeBase64(challenge));
if (authenticationText != null) {
stanza.append(StringUtils.encodeBase64(authenticationText));
}
stanza.append("</response>");
// Send the authentication to the server