public boolean accessGranted( URI requestURI,
				  HTTPHeaders headers,
				  HypertextAccessFile htaccess,
				  String authMethod,

				  Map<String,BasicType> additionalSettings,
				  Map<String,BasicType> optionalReturnSettings
				  ) 
	throws IOException,
	       MissingParamException,
	       ConfigurationException {


	// Switch "Requires" settings ...
	if( htaccess.requiresValidUser() ) {

	    //return checkValidUser( htaccess, authMethod, authUser, authPassData );
	    return checkValidUser( requestURI, headers, htaccess, authMethod, additionalSettings, optionalReturnSettings );
	    
	} else if( htaccess.getRequiredUsers().size() != 0 ) {

	    throw new ConfigurationException( "The \"Require User\" directive is not yet supported. Use \"Require valid-user\" instead." );

	} else if( htaccess.getRequiredGroups().size() !=0 ) {

	    throw new ConfigurationException( "The \"Require Group\" directive is not yet supported. Use \"Require valid-user\" instead." );

	} else {

	    throw new ConfigurationException( "The htaccess file has no \"Require\" directive." );

	}

    }