Switch to external auth API.

This commit is contained in:
Michael Jumper
2011-08-15 09:39:07 -07:00
parent ab90d1d846
commit 111e9163e2
4 changed files with 8 additions and 47 deletions

View File

@@ -85,6 +85,14 @@
<scope>compile</scope>
</dependency>
<!-- Guacamole Authentication API -->
<dependency>
<groupId>net.sourceforge.guacamole</groupId>
<artifactId>guacamole-common-auth</artifactId>
<version>0.5.0</version>
<scope>compile</scope>
</dependency>
<!-- Guacamole JavaScript API -->
<dependency>
<groupId>net.sourceforge.guacamole</groupId>

View File

@@ -1,10 +0,0 @@
package net.sourceforge.guacamole.net.auth;
import net.sourceforge.guacamole.GuacamoleException;
public interface AuthenticationProvider<CredentialType> {
public UserConfiguration getUserConfiguration(CredentialType credentials) throws GuacamoleException;
}

View File

@@ -1,13 +0,0 @@
package net.sourceforge.guacamole.net.auth;
import java.util.Collection;
import net.sourceforge.guacamole.protocol.GuacamoleConfiguration;
public interface UserConfiguration {
public GuacamoleConfiguration getConfiguration(String id);
public Collection<String> listConfigurations();
}

View File

@@ -1,24 +0,0 @@
package net.sourceforge.guacamole.net.auth;
public class UsernamePassword {
private String username;
private String password;
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
}