org.springframework.security.web.authentication.preauth.j2ee
Class J2eePreAuthenticatedProcessingFilter

java.lang.Object
  extended by org.springframework.web.filter.GenericFilterBean
      extended by org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
          extended by org.springframework.security.web.authentication.preauth.j2ee.J2eePreAuthenticatedProcessingFilter
All Implemented Interfaces:
Filter, BeanNameAware, DisposableBean, InitializingBean, ApplicationEventPublisherAware, ServletContextAware

public class J2eePreAuthenticatedProcessingFilter
extends AbstractPreAuthenticatedProcessingFilter

This AbstractPreAuthenticatedProcessingFilter implementation is based on the J2EE container-based authentication mechanism. It will use the J2EE user principal name as the pre-authenticated principal.

Since:
2.0
Author:
Ruud Senden

Field Summary
 
Fields inherited from class org.springframework.web.filter.GenericFilterBean
logger
 
Constructor Summary
J2eePreAuthenticatedProcessingFilter()
           
 
Method Summary
protected  Object getPreAuthenticatedCredentials(HttpServletRequest httpRequest)
          For J2EE container-based authentication there is no generic way to retrieve the credentials, as such this method returns a fixed dummy value.
protected  Object getPreAuthenticatedPrincipal(HttpServletRequest httpRequest)
          Return the J2EE user name.
 
Methods inherited from class org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
afterPropertiesSet, doFilter, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationManager, setCheckForPrincipalChanges, setContinueFilterChainOnUnsuccessfulAuthentication, setInvalidateSessionOnPrincipalChange, successfulAuthentication, unsuccessfulAuthentication
 
Methods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, destroy, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setServletContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J2eePreAuthenticatedProcessingFilter

public J2eePreAuthenticatedProcessingFilter()
Method Detail

getPreAuthenticatedPrincipal

protected Object getPreAuthenticatedPrincipal(HttpServletRequest httpRequest)
Return the J2EE user name.

Specified by:
getPreAuthenticatedPrincipal in class AbstractPreAuthenticatedProcessingFilter

getPreAuthenticatedCredentials

protected Object getPreAuthenticatedCredentials(HttpServletRequest httpRequest)
For J2EE container-based authentication there is no generic way to retrieve the credentials, as such this method returns a fixed dummy value.

Specified by:
getPreAuthenticatedCredentials in class AbstractPreAuthenticatedProcessingFilter


Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.