1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-24 12:24:51 +02: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(); StringBuffer stanza = new StringBuffer();
stanza.append("<response xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">"); stanza.append("<response xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">");
String authenticationText = getChallengeResponse(StringUtils.decodeBase64(challenge)); String authenticationText = getChallengeResponse(StringUtils.decodeBase64(challenge));
if (authenticationText != null) {
stanza.append(StringUtils.encodeBase64(authenticationText)); stanza.append(StringUtils.encodeBase64(authenticationText));
}
stanza.append("</response>"); stanza.append("</response>");
// Send the authentication to the server // Send the authentication to the server