mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 09:03:21 +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