private AuthenticatedUser updateAuthenticatedUser ( AuthenticatedUser authenticatedUser , Credentials credentials ) throws GuacamoleException { // Get original AuthenticationProvider AuthenticationProvider authProvider = authenticatedUser . getAuthenticationProvider ( ) ; // Re-authenticate the AuthenticatedUser against the original AuthenticationProvider only authenticatedUser = authProvider . updateAuthenticatedUser ( authenticatedUser , credentials ) ; if ( authenticatedUser == null ) throw new GuacamoleSecurityException ( "User re-authentication failed." ) ; return authenticatedUser ; }
Re - authenticates the given AuthenticatedUser against the AuthenticationProvider that originally created it using the given Credentials .