web/src/main/java/org/springframework/security/web/context/AbstractSecurityWebApplicationInitializer.java
private void registerFilters(ServletContext servletContext,
			boolean insertBeforeOtherFilters, Filter... filters) {
		Assert.notEmpty(filters, "filters cannot be null or empty");

		for (Filter filter : filters) {
			if (filter == null) {
				throw new IllegalArgumentException(
						"filters cannot contain null values. Got "
								+ Arrays.asList(filters));
			}
			String filterName = Conventions.getVariableName(filter);
			registerFilter(servletContext, insertBeforeOtherFilters, filterName, filter);
		}
	}
private void registerFilters(ServletContext servletContext,
			boolean insertBeforeOtherFilters, Filter... filters) {
		Assert.notEmpty(filters, "filters cannot be null or empty");

		for (Filter filter : filters) {
			if (filter == null) {
				throw new IllegalArgumentException(
						"filters cannot contain null values. Got "
								+ Arrays.asList(filters));
			}
			String filterName = Conventions.getVariableName(filter);
			registerFilter(servletContext, insertBeforeOtherFilters, filterName, filter);
		}
	}
Registers the provided {@link Filter}s using default generated names,
{@link #getSecurityDispatcherTypes()}, and {@link #isAsyncSecuritySupported()}.

@param servletContext the {@link ServletContext} to use
@param insertBeforeOtherFilters if true, will insert the provided {@link Filter}s
before other {@link Filter}s. Otherwise, will insert the {@link Filter}s after
other {@link Filter}s.
@param filters the {@link Filter}s to register