I am new to SMACK, and honestly not really that experienced with XMPP either, so please take that in mind.
We are trying to move from a Python based XMPP client test script for our product to one that uses SMACK.
In our system, the initial authentication message is mostly empty, and the response from the server requests information
IQ into Sever:
miketolerIQ Response from server:
At this point our client should be responding with this message:
juanita
eea360171787767887f5a59ee893203a
1255619034389
HmacMD5
rhc
My question is, How do I ADD the “timestamp” and “digesttype” to the message?? the resource, digest and username are obvious, but I just can’t figure out how to get those additional tags in the XML?
My code currently looks like:
Authentication p3 = new Authentication();
p3.setType(IQ.Type.SET);
p3.setUsername(userName);
p3.setDigest(encodedDigest);
p3.setResource(“rhc”);
conn.sendPacket(p3);
Any insights for the newby would be greatly appreciated.
Michael