diff --git a/source/org/jivesoftware/smack/packet/Authentication.java b/source/org/jivesoftware/smack/packet/Authentication.java index 3ff5b8a87..dce690b40 100644 --- a/source/org/jivesoftware/smack/packet/Authentication.java +++ b/source/org/jivesoftware/smack/packet/Authentication.java @@ -38,7 +38,7 @@ public class Authentication extends IQ { * "set" mode in order to perform an actual authentication with the server. * In order to send a "get" request to get the available authentication * modes back from the server, change the type of the IQ packet to "get": - * + *

*

setType(IQ.Type.GET); */ public Authentication() { @@ -105,7 +105,7 @@ public class Authentication extends IQ { * authentication mode will be used. * * @param connectionID the connection ID. - * @param password the password. + * @param password the password. * @see org.jivesoftware.smack.XMPPConnection#getConnectionID() */ public void setDigest(String connectionID, String password) { @@ -120,7 +120,7 @@ public class Authentication extends IQ { * If only one value is set, the respective authentication mode will be used. * * @param digest the digest, which is the SHA-1 hash of the connection ID - * the user's password, encoded as hex. + * the user's password, encoded as hex. * @see org.jivesoftware.smack.XMPPConnection#getConnectionID() */ public void setDigest(String digest) { @@ -153,7 +153,7 @@ public class Authentication extends IQ { buf.append(""); } else { - buf.append("").append( username).append(""); + buf.append("").append(username).append(""); } } if (digest != null) { @@ -169,7 +169,7 @@ public class Authentication extends IQ { buf.append(""); } else { - buf.append("").append(password).append(""); + buf.append("").append(StringUtils.escapeForXML(password)).append(""); } } if (resource != null) {