GUACAMOLE-5: Use AuthenticationProviderService as the means of defining AuthenticationProvider behavior.

This commit is contained in:
Michael Jumper
2016-07-28 17:16:03 -07:00
parent 600002531e
commit 4e3212f9fd
5 changed files with 140 additions and 105 deletions

View File

@@ -19,7 +19,9 @@
package org.apache.guacamole.auth.postgresql;
import org.apache.guacamole.auth.jdbc.JDBCAuthenticationProvider;
import org.apache.guacamole.GuacamoleException;
import org.apache.guacamole.auth.jdbc.InjectedAuthenticationProvider;
import org.apache.guacamole.auth.jdbc.JDBCAuthenticationProviderService;
/**
* Provides a PostgreSQL-based implementation of the AuthenticationProvider
@@ -28,15 +30,19 @@ import org.apache.guacamole.auth.jdbc.JDBCAuthenticationProvider;
* @author James Muehlner
* @author Michael Jumper
*/
public class PostgreSQLAuthenticationProvider extends JDBCAuthenticationProvider {
public class PostgreSQLAuthenticationProvider extends InjectedAuthenticationProvider {
/**
* Creates a new PostgreSQLAuthenticationProvider that reads and writes
* authentication data to a PostgreSQL database defined by properties in
* guacamole.properties.
*
* @throws GuacamoleException
* If a required property is missing, or an error occurs while parsing
* a property.
*/
public PostgreSQLAuthenticationProvider() {
super(new PostgreSQLInjectorProvider());
public PostgreSQLAuthenticationProvider() throws GuacamoleException {
super(new PostgreSQLInjectorProvider(), JDBCAuthenticationProviderService.class);
}
@Override