| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you 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.apache.ki.spring; |
| |
| import org.ki.web.servlet.JSecurityFilter; |
| |
| /** |
| * Extension of JSecurityFilter that uses {@link SpringIniWebConfiguration} to configure JSecurity in a Spring web |
| * environment. |
| * <p/> |
| * Using this class in web.xml essentially enables the following: |
| * <pre><filter> |
| * <filter-name>JSecurityFilter</filter-name> |
| * <filter-class>org.jsecurity.web.servlet.JSecurityFilter</filter-class> |
| * <init-param> |
| * <param-name>configClassName</param-name> |
| * <param-value>org.jsecurity.spring.SpringIniWebConfiguration<param-value> |
| * </init-param> |
| * <init-param> |
| * <param-name>config</param-name> |
| * <param-value> |
| * ... normal .ini config ... |
| * <param-value> |
| * </init-param> |
| <filter></pre> |
| * <p/> |
| * That is, you don't have to specify the additional <code>configClassName</code> <code>init-param</code>. |
| * |
| * @author Les Hazlewood |
| * @author Jeremy Haile |
| * @since 0.2 |
| */ |
| public class SpringJSecurityFilter extends JSecurityFilter { |
| |
| //TODO - complete JavaDoc |
| |
| /** |
| * Default constructor, merely calls |
| * <code>{@link #configClassName this.configClassName} = {@link SpringIniWebConfiguration SpringIniWebConfiguration}.class.getName()}</code>. |
| */ |
| public SpringJSecurityFilter() { |
| this.configClassName = SpringIniWebConfiguration.class.getName(); |
| } |
| } |