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:
jakarta.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
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
-
Field Summary
Fields inherited from class org.springframework.web.filter.GenericFilterBean
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
getPreAuthenticatedCredentials
(jakarta.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 Object
getPreAuthenticatedPrincipal
(jakarta.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
Methods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
-
Constructor Details
-
J2eePreAuthenticatedProcessingFilter
public J2eePreAuthenticatedProcessingFilter()
-
-
Method Details
-
getPreAuthenticatedPrincipal
Return the J2EE user name.- Specified by:
getPreAuthenticatedPrincipal
in classAbstractPreAuthenticatedProcessingFilter
-
getPreAuthenticatedCredentials
protected Object getPreAuthenticatedCredentials(jakarta.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
-