private function _containsValidAuthority($uriComponents)
    {
        if (!array_key_exists(Resources::PHP_URL_USER, $uriComponents)) {
            return false;
        }

        if (empty($uriComponents[Resources::PHP_URL_USER])) {
            return false;
        }

        if (!array_key_exists(Resources::PHP_URL_PASS, $uriComponents)) {
            return false;
        }

        if (empty($uriComponents[Resources::PHP_URL_PASS])) {
            return false;
        }

        return true;
    }