private function checkAuthentication(array $authorization, $method, $password)
    {
        $A1 = md5("{$authorization['username']}:{$this->realm}:{$password}");
        $A2 = md5("{$method}:{$authorization['uri']}");

        $validResponse = md5("{$A1}:{$authorization['nonce']}:{$authorization['nc']}:{$authorization['cnonce']}:{$authorization['qop']}:{$A2}");

        return $authorization['response'] === $validResponse;
    }
private function checkAuthentication(array $authorization, $method, $password)
    {
        $A1 = md5("{$authorization['username']}:{$this->realm}:{$password}");
        $A2 = md5("{$method}:{$authorization['uri']}");

        $validResponse = md5("{$A1}:{$authorization['nonce']}:{$authorization['nc']}:{$authorization['cnonce']}:{$authorization['qop']}:{$A2}");

        return $authorization['response'] === $validResponse;
    }
private function checkAuthentication ( array $ authorization , $ method , $ password ) { $ A1 = md5 ( "{$authorization['username']}:{$this->realm}:{$password}" ) ; $ A2 = md5 ( "{$method}:{$authorization['uri']}" ) ; $ validResponse = md5 ( "{$A1}:{$authorization['nonce']}:{$authorization['nc']}:{$authorization['cnonce']}:{$authorization['qop']}:{$A2}" ) ; return $ authorization [ 'response' ] === $ validResponse ; }
Validates the user authentication.

@param array  $authorization
@param string $method
@param string $password

@return bool
Validates the user authentication .