GUACAMOLE-393: Add AuthenticationProvider shutdown hook.

This commit is contained in:
Michael Jumper
2017-05-29 21:21:48 -07:00
parent 45adf2fd93
commit 2c587e5f9f
9 changed files with 67 additions and 1 deletions

View File

@@ -167,5 +167,12 @@ public interface AuthenticationProvider {
UserContext updateUserContext(UserContext context,
AuthenticatedUser authenticatedUser,
Credentials credentials) throws GuacamoleException;
/**
* Frees all resources associated with this AuthenticationProvider. This
* function will be automatically invoked when the Guacamole server is
* shutting down.
*/
void shutdown();
}

View File

@@ -260,4 +260,9 @@ public abstract class SimpleAuthenticationProvider
}
@Override
public void shutdown() {
// Do nothing
}
}