public GuacamoleSession getGuacamoleSession ( String authToken ) throws GuacamoleException { // Try to get the session from the map of logged in users. GuacamoleSession session = tokenSessionMap . get ( authToken ) ; // Authentication failed. if ( session == null ) throw new GuacamoleUnauthorizedException ( "Permission Denied." ) ; return session ; }
Finds the Guacamole session for a given auth token if the auth token represents a currently logged in user . Throws an unauthorized error otherwise .