mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-393: Add AuthenticationProvider shutdown hook.
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
@@ -260,4 +260,9 @@ public abstract class SimpleAuthenticationProvider
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void shutdown() {
|
||||
// Do nothing
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user