[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
server.

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
that?

Thanks.




		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail



More information about the JDev mailing list