Commit 87d696fc authored by Matt Tucker's avatar Matt Tucker Committed by matt

Addition JDBC provider work.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4264 b35dd754-fafc-0310-a699-88a17e54d16e
parent 39ce623f
......@@ -161,6 +161,9 @@ public class JDBCAuthProvider implements AuthProvider {
public String getPassword(String username) throws UserNotFoundException,
UnsupportedOperationException
{
if (!supportsPasswordRetrieval()) {
throw new UnsupportedOperationException();
}
String password = null;
Connection con = null;
PreparedStatement pstmt = null;
......@@ -190,11 +193,13 @@ public class JDBCAuthProvider implements AuthProvider {
}
public void setPassword(String username, String password)
throws UserNotFoundException, UnsupportedOperationException {
throws UserNotFoundException, UnsupportedOperationException
{
throw new UnsupportedOperationException();
}
public boolean supportsPasswordRetrieval() {
return false;
return (passwordSQL != null && passwordType == PasswordType.plain);
}
/**
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment