Fixed Pwd Authenticate issue.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user