297598 JDBCLoginService uses hardcoded credential class

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1865 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Michael Gorovoy 2010-05-25 15:54:34 +00:00
parent ea06889ddd
commit 6f631fab63
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
jetty-7.1.3-SNAPSHOT jetty-7.1.3-SNAPSHOT
+ 297598 JDBCLoginService uses hardcoded credential class
+ 305898 Websocket handles query string in URI + 305898 Websocket handles query string in URI
+ 313205 Unable to run test-jdbc-sessions tests + 313205 Unable to run test-jdbc-sessions tests

View File

@ -23,6 +23,7 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Properties; import java.util.Properties;
import org.eclipse.jetty.http.security.Credential;
import org.eclipse.jetty.http.security.Password; import org.eclipse.jetty.http.security.Password;
import org.eclipse.jetty.server.UserIdentity; import org.eclipse.jetty.server.UserIdentity;
import org.eclipse.jetty.util.Loader; import org.eclipse.jetty.util.Loader;
@ -248,7 +249,7 @@ public class JDBCLoginService extends MappedLoginService
roles.add(rs.getString(_roleTableRoleField)); roles.add(rs.getString(_roleTableRoleField));
stat.close(); stat.close();
return putUser(username, new Password(credentials),roles.toArray(new String[roles.size()])); return putUser(username, Credential.getCredential(credentials),roles.toArray(new String[roles.size()]));
} }
} }
catch (SQLException e) catch (SQLException e)