diff --git a/core/src/main/java/org/acegisecurity/adapters/AbstractIntegrationFilter.java b/core/src/main/java/org/acegisecurity/adapters/AbstractIntegrationFilter.java deleted file mode 100644 index b59c251459..0000000000 --- a/core/src/main/java/org/acegisecurity/adapters/AbstractIntegrationFilter.java +++ /dev/null @@ -1,156 +0,0 @@ -/* Copyright 2004 Acegi Technology Pty Limited - * - * 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 net.sf.acegisecurity.adapters; - -import net.sf.acegisecurity.Authentication; -import net.sf.acegisecurity.context.Context; -import net.sf.acegisecurity.context.ContextHolder; -import net.sf.acegisecurity.context.SecureContext; -import net.sf.acegisecurity.context.SecureContextImpl; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - -import java.io.IOException; - -import javax.servlet.Filter; -import javax.servlet.FilterChain; -import javax.servlet.FilterConfig; -import javax.servlet.ServletException; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; - - -/** - * Automatically populates a {@link net.sf.acegisecurity.context.SecureContext} - * from a subclass-provided container source. - * - *
- * The container is expected to expose an {@link Authentication} object in a
- * well-known location. The Authentication
object will have been
- * created by the container-specific Acegi Security System for Spring adapter.
- *
- * Once the Authentication
object has been extracted from the
- * well-known location, the interceptor handles putting it into the {@link
- * ContextHolder}. It then removes it once the filter chain has completed.
- *
- * This interceptor will not operate if the container does not provide an
- * Authentication
object from its well-known location.
- *
Object
- * that contains the Authentication
interface.
- *
- *
- * For convenience we have allowed any Object
to be returned
- * by subclasses, as the abstract class will ensure class casting safety
- * and ignore objects that do not implement Authentication
.
- *
- * If no authentication object is available, subclasses should return
- * null
.
- *
- * If the container can locate multiple authentication objects, subclasses
- * should return the object that was created by the Acegi Security System
- * for Spring adapter (ie that implements Authentication
).
- *
null
or an object that implements
- * Authentication
- */
- public abstract Object extractFromContainer(ServletRequest request);
-
- public void init(FilterConfig filterConfig) throws ServletException {}
-}
diff --git a/core/src/main/java/org/acegisecurity/adapters/AutoIntegrationFilter.java b/core/src/main/java/org/acegisecurity/adapters/AutoIntegrationFilter.java
deleted file mode 100644
index 787a05a258..0000000000
--- a/core/src/main/java/org/acegisecurity/adapters/AutoIntegrationFilter.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/* Copyright 2004 Acegi Technology Pty Limited
- *
- * 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 net.sf.acegisecurity.adapters;
-
-import net.sf.acegisecurity.Authentication;
-import net.sf.acegisecurity.adapters.jboss.JbossIntegrationFilter;
-
-import javax.servlet.ServletRequest;
-import javax.servlet.http.HttpServletRequest;
-
-
-/**
- * Detects the container and delegates to the appropriate {@link
- * AbstractIntegrationFilter}.
- *
- *
- * This eases the creation of portable secured Spring applications, as the
- * web.xml
will not need to refer to a specific container
- * integration filter.
- *
- * The filter automatically delegates to
- * HttpRequestIntegrationFilter
if any
- * Authentication
object is detected in the
- * ServletRequest
. Failing this, it will delegate to
- * JbossIntegrationFilter
if the ServletRequest
- * contains an instance of JBoss' SimplePrincipal
.
- *
HttpRequestIntegrationFilter
.
- *
- * @return the HttpRequestIntegrationFilter
to use
- */
- protected HttpRequestIntegrationFilter getHttpServletRequest() {
- return new HttpRequestIntegrationFilter();
- }
-
- /**
- * Allows test case to override the source of
- * JbossIntegrationFilter
.
- *
- * @return the JbossIntegrationFilter
to use
- */
- protected JbossIntegrationFilter getJbossIntegrationFilter() {
- return new JbossIntegrationFilter();
- }
-}