public boolean destroyGuacamoleSession ( String authToken ) { // Remove corresponding GuacamoleSession if the token is valid GuacamoleSession session = tokenSessionMap . remove ( authToken ) ; if ( session == null ) return false ; // Invalidate the removed session session . invalidate ( ) ; return true ; }
Invalidates a specific authentication token and its corresponding Guacamole session effectively logging out the associated user . If the authentication token is not valid this function has no effect .