GUAC-586: Associate unique identifier with each AuthenticationProvider.

This commit is contained in:
Michael Jumper
2015-08-27 15:34:12 -07:00
parent f190f7f1a7
commit b0ac5d22ff
8 changed files with 75 additions and 13 deletions

View File

@@ -33,6 +33,18 @@ import org.glyptodon.guacamole.GuacamoleException;
*/
public interface AuthenticationProvider {
/**
* Returns the identifier which uniquely and consistently identifies this
* AuthenticationProvider implementation. This identifier may not be null
* and must be unique across all AuthenticationProviders loaded by the
* Guacamole web application.
*
* @return
* The unique identifier assigned to this AuthenticationProvider, which
* may not be null.
*/
String getIdentifier();
/**
* Returns an AuthenticatedUser representing the user authenticated by the
* given credentials, if any.