[jdev] Strange Smack SASL response encoding implementation
Tomasz Sterna
tomek at xiaoka.com
Fri Oct 12 01:30:41 UTC 2012
Hello.
Does anyone have an idea, why Smack (the Java client library) is
producing these invalid challenge response:
<response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">=</response>
Notice the single = character in place of empty data.
Single = character is invalid Base64 data and it prevents SMACK logging
in my server on invalid-encoding error.
There is an explicit code in Smack to implement this violation:
authenticationText = Base64.encodeBytes(response,Base64.DONT_BREAK_LINES);
if(authenticationText.equals("")) {
authenticationText = "=";
}
Somebody obviously had something in mind implementing it.
Am I missing something?
--
Tomasz Sterna
Instant Messaging Consultant : Open Source Developer
http://tomasz.sterna.tv/ http://www.xiaoka.com/portfolio
More information about the JDev
mailing list