Class X509AuthenticationFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
-
- org.springframework.security.web.authentication.preauth.x509.X509AuthenticationFilter
-
- 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 X509AuthenticationFilter extends AbstractPreAuthenticatedProcessingFilter
-
-
Constructor Summary
Constructors Constructor Description X509AuthenticationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectgetPreAuthenticatedCredentials(javax.servlet.http.HttpServletRequest request)Override to extract the credentials (if applicable) from the current request.protected java.lang.ObjectgetPreAuthenticatedPrincipal(javax.servlet.http.HttpServletRequest request)Override to extract the principal information from the current requestvoidsetPrincipalExtractor(X509PrincipalExtractor principalExtractor)-
Methods inherited from class org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
afterPropertiesSet, doFilter, getAuthenticationDetailsSource, principalChanged, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setCheckForPrincipalChanges, setContinueFilterChainOnUnsuccessfulAuthentication, setInvalidateSessionOnPrincipalChange, setRequiresAuthenticationRequestMatcher, setSecurityContextRepository, successfulAuthentication, unsuccessfulAuthentication
-
-
-
-
Method Detail
-
getPreAuthenticatedPrincipal
protected java.lang.Object getPreAuthenticatedPrincipal(javax.servlet.http.HttpServletRequest request)
Description copied from class:AbstractPreAuthenticatedProcessingFilterOverride to extract the principal information from the current request- Specified by:
getPreAuthenticatedPrincipalin classAbstractPreAuthenticatedProcessingFilter
-
getPreAuthenticatedCredentials
protected java.lang.Object getPreAuthenticatedCredentials(javax.servlet.http.HttpServletRequest request)
Description copied from class:AbstractPreAuthenticatedProcessingFilterOverride to extract the credentials (if applicable) from the current request. Should not return null for a valid principal, though some implementations may return a dummy value.- Specified by:
getPreAuthenticatedCredentialsin classAbstractPreAuthenticatedProcessingFilter
-
setPrincipalExtractor
public void setPrincipalExtractor(X509PrincipalExtractor principalExtractor)
-
-