Class J2eePreAuthenticatedProcessingFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
-
- org.springframework.security.web.authentication.preauth.j2ee.J2eePreAuthenticatedProcessingFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationEventPublisherAware
,org.springframework.context.EnvironmentAware
,org.springframework.core.env.EnvironmentCapable
,org.springframework.web.context.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
-
-
Constructor Summary
Constructors Constructor Description J2eePreAuthenticatedProcessingFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
getPreAuthenticatedCredentials(javax.servlet.http.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 java.lang.Object
getPreAuthenticatedPrincipal(javax.servlet.http.HttpServletRequest httpRequest)
Return the J2EE user name.-
Methods inherited from class org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
afterPropertiesSet, doFilter, getAuthenticationDetailsSource, principalChanged, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setCheckForPrincipalChanges, setContinueFilterChainOnUnsuccessfulAuthentication, setInvalidateSessionOnPrincipalChange, setRequiresAuthenticationRequestMatcher, setSecurityContextHolderStrategy, setSecurityContextRepository, successfulAuthentication, unsuccessfulAuthentication
-
-
-
-
Method Detail
-
getPreAuthenticatedPrincipal
protected java.lang.Object getPreAuthenticatedPrincipal(javax.servlet.http.HttpServletRequest httpRequest)
Return the J2EE user name.- Specified by:
getPreAuthenticatedPrincipal
in classAbstractPreAuthenticatedProcessingFilter
-
getPreAuthenticatedCredentials
protected java.lang.Object getPreAuthenticatedCredentials(javax.servlet.http.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 classAbstractPreAuthenticatedProcessingFilter
-
-