[jdev] special char in password problem

Veronica Chau vrncch at yahoo.com
Thu Dec 2 01:34:07 CST 2004

I have problem when having some special character,
like a & in a password.  In the client side code, the
AuthQuery is setup by

  Method    method = AuthQuery.PLAIN;
  Map       params = method.setupAuthParams(auth);
  params.put("password", password);
  method.setupAuth(auth, params);

if the password is something like test&, the packet
sent will have that password as
<password>test&amp;</password> being sent to the

And on the server side, when I try to retrieve the
password using the method AuthQuery.getPassword(), it
give me 'test &' instead of 'test&'.

Does anyone has this problem, or know how to solve


Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 

More information about the JDev mailing list