|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.ui.x509.X509ProcessingFilter
public class X509ProcessingFilter
Processes the X.509 certificate submitted by a client browser when HTTPS is used with client-authentication enabled.
An X509AuthenticationToken
is created with the certificate as the credentials.
The configured authentication manager is expected to supply a provider which can handle this token (usually
an instance of X509AuthenticationProvider
).
If authentication is successful, an InteractiveAuthenticationSuccessEvent
will be published to the application
context. No events will be published if authentication was unsuccessful, because this would generally be recorded
via an AuthenticationManager
-specific application event.
Constructor Summary | |
---|---|
X509ProcessingFilter()
Deprecated. |
Method Summary | |
---|---|
void |
afterPropertiesSet()
Deprecated. |
void |
destroy()
Deprecated. |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain filterChain)
Deprecated. This method first checks for an existing, non-null authentication in the secure context. |
void |
init(FilterConfig ignored)
Deprecated. |
void |
setApplicationEventPublisher(ApplicationEventPublisher context)
Deprecated. |
void |
setAuthenticationDetailsSource(AuthenticationDetailsSource authenticationDetailsSource)
Deprecated. |
void |
setAuthenticationManager(AuthenticationManager authenticationManager)
Deprecated. |
protected void |
successfulAuthentication(HttpServletRequest request,
HttpServletResponse response,
Authentication authResult)
Deprecated. Puts the Authentication instance returned by the authentication manager into the secure
context. |
protected void |
unsuccessfulAuthentication(HttpServletRequest request,
HttpServletResponse response,
AuthenticationException failed)
Deprecated. Ensures the authentication object in the secure context is set to null when authentication fails. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public X509ProcessingFilter()
Method Detail |
---|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public void destroy()
destroy
in interface Filter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException
If no authentication object exists, it attempts to obtain the client authentication
certificate from the request. If there is no certificate present then authentication is skipped. Otherwise a
new authentication request containing the certificate will be passed to the configured AuthenticationManager
.
If authentication is successful the returned token will be stored in the secure context. Otherwise it will be set to null. In either case, the request proceeds through the filter chain.
doFilter
in interface Filter
request
- DOCUMENT ME!response
- DOCUMENT ME!filterChain
- DOCUMENT ME!
IOException
- DOCUMENT ME!
ServletException
- DOCUMENT ME!public void init(FilterConfig ignored) throws ServletException
init
in interface Filter
ServletException
public void setApplicationEventPublisher(ApplicationEventPublisher context)
setApplicationEventPublisher
in interface ApplicationEventPublisherAware
public void setAuthenticationDetailsSource(AuthenticationDetailsSource authenticationDetailsSource)
public void setAuthenticationManager(AuthenticationManager authenticationManager)
protected void successfulAuthentication(HttpServletRequest request, HttpServletResponse response, Authentication authResult) throws IOException
Authentication
instance returned by the authentication manager into the secure
context.
request
- DOCUMENT ME!response
- DOCUMENT ME!authResult
- DOCUMENT ME!
IOException
- DOCUMENT ME!protected void unsuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response, AuthenticationException failed)
request
- DOCUMENT ME!response
- DOCUMENT ME!failed
- DOCUMENT ME!
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |