mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 17:13:21 +00:00 
			
		
		
		
	GUACAMOLE-393: Add session invalidation hooks to UserContext.
This commit is contained in:
		| @@ -212,4 +212,11 @@ public interface UserContext { | ||||
|      */ | ||||
|     Collection<Form> getSharingProfileAttributes(); | ||||
|  | ||||
|     /** | ||||
|      * Invalidates this user context, releasing all associated resources. This | ||||
|      * function will be invoked when the user logs out, or when their session | ||||
|      * is automatically invalidated. | ||||
|      */ | ||||
|     void invalidate(); | ||||
|  | ||||
| } | ||||
|   | ||||
| @@ -234,4 +234,9 @@ public class SimpleUserContext implements UserContext { | ||||
|         return Collections.<Form>emptyList(); | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public void invalidate() { | ||||
|         // Nothing to invalidate | ||||
|     } | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user