1
0
mirror of synced 2026-08-04 17:27:13 +00:00

SEC-1536: moved web.authentication.jaas to web.jaasapi

Renamed org.springframework.security.web.authentication.jaas to org.springframework.security.web.jaasapi to be better aligned with org.springframework.security.web.servletapi, added package-info.java, and removed trailing whitespaces
This commit is contained in:
Rob Winch
2010-10-05 21:42:44 -05:00
parent 8249492ce9
commit ee12d54bec
6 changed files with 17 additions and 10 deletions
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.security.web.authentication.jaas;
package org.springframework.security.web.jaasapi;
import java.io.IOException;
import java.security.PrivilegedActionException;
@@ -44,7 +44,7 @@ import org.springframework.web.filter.GenericFilterBean;
* simultaneously. This is useful when integrating with code that requires a
* JAAS <code>Subject</code> to be populated.
* </p>
*
*
* @author Rob Winch
* @see #doFilter(ServletRequest, ServletResponse, FilterChain)
* @see #obtainSubject(ServletRequest)
@@ -61,7 +61,7 @@ public class JaasApiIntegrationFilter extends GenericFilterBean {
* Attempts to obtain and run as a JAAS <code>Subject</code> using
* {@link #obtainSubject(ServletRequest)}.
* </p>
*
*
* <p>
* If the <code>Subject</code> is <code>null</code> and
* <tt>createEmptySubject</tt> is <code>true</code>, an empty, writeable
@@ -120,7 +120,7 @@ public class JaasApiIntegrationFilter extends GenericFilterBean {
* the <code>Subject</code> is returned from it. Otherwise,
* <code>null</code> is returned.
* </p>
*
*
* @param request
* the current <code>ServletRequest</code>
* @return the Subject to run as or <code>null</code> if no
@@ -153,7 +153,7 @@ public class JaasApiIntegrationFilter extends GenericFilterBean {
* and {@link #obtainSubject(ServletRequest)} returns <code>null</code>, an
* empty, writeable <code>Subject</code> is created instead. Otherwise no
* <code>Subject</code> is used. The default is <code>false</code>.
*
*
* @param createEmptySubject
* the new value
*/
@@ -0,0 +1,6 @@
/**
* Makes a JAAS Subject available as the current Subject.
* <p>
* To use, simply add the {@code JaasApiIntegrationFilter} to the Spring Security filter chain.
*/
package org.springframework.security.web.jaasapi;
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.security.web.authentication.jaas;
package org.springframework.security.web.jaasapi;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
@@ -50,10 +50,11 @@ import org.springframework.security.authentication.jaas.TestLoginModule;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.authority.AuthorityUtils;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.web.jaasapi.JaasApiIntegrationFilter;
/**
* Tests the JaasApiIntegrationFilter.
*
*
* @author Rob Winch
*/
public class JaasApiIntegrationFilterTest {