/*
 * Copyright 2002-2016 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.springframework.security.config.http;

import org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter;

/**
 * Stores the default order numbers of all Spring Security filters for use in
 * configuration.
 *
 * @author Luke Taylor
 * @author Rob Winch
 */

enum SecurityFilters {
	FIRST(Integer.MIN_VALUE), CHANNEL_FILTER, SECURITY_CONTEXT_FILTER, CONCURRENT_SESSION_FILTER,
	/** {@link WebAsyncManagerIntegrationFilter} */
	WEB_ASYNC_MANAGER_FILTER, HEADERS_FILTER, CORS_FILTER, CSRF_FILTER, LOGOUT_FILTER, X509_FILTER, PRE_AUTH_FILTER, CAS_FILTER, FORM_LOGIN_FILTER, OPENID_FILTER, LOGIN_PAGE_FILTER, DIGEST_AUTH_FILTER, BASIC_AUTH_FILTER, REQUEST_CACHE_FILTER, SERVLET_API_SUPPORT_FILTER, JAAS_API_SUPPORT_FILTER, REMEMBER_ME_FILTER, ANONYMOUS_FILTER, SESSION_MANAGEMENT_FILTER, EXCEPTION_TRANSLATION_FILTER, FILTER_SECURITY_INTERCEPTOR, SWITCH_USER_FILTER, LAST(
			Integer.MAX_VALUE);

	private static final int INTERVAL = 100;
	private final int order;

	private SecurityFilters() {
		order = ordinal() * INTERVAL;
	}

	private SecurityFilters(int order) {
		this.order = order;
	}

	public int getOrder() {
		return order;
	}
}

@@ -963,17 +963,18 @@
 _VALUE),
- 
+%0A%09
 CHANNEL_
@@ -980,17 +980,18 @@
 _FILTER,
- 
+%0A%09
 SECURITY
@@ -1006,17 +1006,18 @@
 _FILTER,
- 
+%0A%09
 CONCURRE
@@ -1036,16 +1036,41 @@
 ILTER,%0A%09
+WEB_ASYNC_MANAGER_FILTER 
 /** %7B@li
@@ -1112,36 +1112,11 @@
 %7D */
+,
 %0A%09
-WEB_ASYNC_MANAGER_FILTER, 
 HEAD
@@ -1139,17 +1139,18 @@
 _FILTER,
- 
+%0A%09
 CSRF_FIL
@@ -1153,17 +1153,18 @@
 _FILTER,
- 
+%0A%09
 LOGOUT_F
@@ -1169,17 +1169,18 @@
 _FILTER,
- 
+%0A%09
 X509_FIL
@@ -1183,17 +1183,18 @@
 _FILTER,
- 
+%0A%09
 PRE_AUTH
@@ -1201,17 +1201,18 @@
 _FILTER,
- 
+%0A%09
 CAS_FILT
@@ -1214,17 +1214,18 @@
 _FILTER,
- 
+%0A%09
 FORM_LOG
@@ -1234,17 +1234,18 @@
 _FILTER,
- 
+%0A%09
 OPENID_F
@@ -1250,17 +1250,18 @@
 _FILTER,
- 
+%0A%09
 LOGIN_PA
@@ -1270,17 +1270,18 @@
 _FILTER,
- 
+%0A%09
 DIGEST_A
@@ -1291,17 +1291,18 @@
 _FILTER,
- 
+%0A%09
 BASIC_AU
@@ -1311,17 +1311,18 @@
 _FILTER,
- 
+%0A%09
 REQUEST_
@@ -1334,17 +1334,18 @@
 _FILTER,
- 
+%0A%09
 SERVLET_
@@ -1363,17 +1363,18 @@
 _FILTER,
- 
+%0A%09
 JAAS_API
@@ -1389,17 +1389,18 @@
 _FILTER,
- 
+%0A%09
 REMEMBER
@@ -1410,17 +1410,18 @@
 _FILTER,
- 
+%0A%09
 ANONYMOU
@@ -1429,17 +1429,18 @@
 _FILTER,
- 
+%0A%09
 SESSION_
@@ -1457,17 +1457,18 @@
 _FILTER,
- 
+%0A%09
 EXCEPTIO
@@ -1488,17 +1488,18 @@
 _FILTER,
- 
+%0A%09
 FILTER_S
@@ -1518,17 +1518,18 @@
 RCEPTOR,
- 
+%0A%09
 SWITCH_U
@@ -1543,18 +1543,15 @@
 TER,
- 
+%0A%09
 LAST(
-%0A%09%09%09
 Inte

Format security ilters enums for readability