Fixed Pwd Authenticate issue.

This commit is contained in:
Juan Carlos Luciani
2007-01-12 05:31:50 +00:00
parent 316947e05f
commit 0262de0e3f
3 changed files with 10 additions and 4 deletions

View File

@@ -80,12 +80,12 @@ public final class PwdAuthenticate implements AuthMechanism, Serializable
try
{
// Decode the token
byte[] tokenBytes = Base64Coder.decode(encodedToken);
//
// Unfortunately the password has to be passed to JNDI as a String. Given this,
// we are going to go ahead and convert the token to a String to facilitate
// the parsing operation..
tokenReader = new BufferedReader(new StringReader(tokenBytes.toString()));
String token = new String(Base64Coder.decode(encodedToken));
tokenReader = new BufferedReader(new StringReader(token));
// The first line contains the "username"
m_username = tokenReader.readLine();