mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-10 18:59:41 +02:00
HTML and comment cleanup. Small API refactors. Moved use of StringBuffer to StringBuilder.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@10865 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
b927475caa
commit
334838d28e
32 changed files with 271 additions and 305 deletions
|
@ -48,7 +48,7 @@ public class SASLAnonymous extends SASLMechanism {
|
|||
}
|
||||
|
||||
protected void authenticate() throws IOException {
|
||||
StringBuffer stanza = new StringBuffer();
|
||||
StringBuilder stanza = new StringBuilder();
|
||||
stanza.append("<auth mechanism=\"").append(getName());
|
||||
stanza.append("\" xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">");
|
||||
stanza.append("</auth>");
|
||||
|
@ -59,7 +59,7 @@ public class SASLAnonymous extends SASLMechanism {
|
|||
|
||||
public void challengeReceived(String challenge) throws IOException {
|
||||
// Build the challenge response stanza encoding the response text
|
||||
StringBuffer stanza = new StringBuffer();
|
||||
StringBuilder stanza = new StringBuilder();
|
||||
stanza.append("<response xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">");
|
||||
stanza.append("=");
|
||||
stanza.append("</response>");
|
||||
|
|
|
@ -110,7 +110,7 @@ public abstract class SASLMechanism implements CallbackHandler {
|
|||
}
|
||||
|
||||
protected void authenticate() throws IOException, XMPPException {
|
||||
StringBuffer stanza = new StringBuffer();
|
||||
StringBuilder stanza = new StringBuilder();
|
||||
stanza.append("<auth mechanism=\"").append(getName());
|
||||
stanza.append("\" xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">");
|
||||
try {
|
||||
|
@ -140,7 +140,7 @@ public abstract class SASLMechanism implements CallbackHandler {
|
|||
*/
|
||||
public void challengeReceived(String challenge) throws IOException {
|
||||
// Build the challenge response stanza encoding the response text
|
||||
StringBuffer stanza = new StringBuffer();
|
||||
StringBuilder stanza = new StringBuilder();
|
||||
|
||||
byte response[];
|
||||
if(challenge != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue