org.springframework.security.web
Interface AuthenticationEntryPoint

All Known Implementing Classes:
AuthenticationProcessingFilterEntryPoint, BasicAuthenticationEntryPoint, CasAuthenticationEntryPoint, DigestAuthenticationEntryPoint, Http403ForbiddenEntryPoint, LoginUrlAuthenticationEntryPoint, PreAuthenticatedProcessingFilterEntryPoint

public interface AuthenticationEntryPoint

Used by ExceptionTranslationFilter to commence an authentication scheme.

Version:
$Id: AuthenticationEntryPoint.java 3664 2009-05-12 05:37:11Z ltaylor $
Author:
Ben Alex

Method Summary
 void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException)
          Commences an authentication scheme.
 

Method Detail

commence

void commence(HttpServletRequest request,
              HttpServletResponse response,
              AuthenticationException authException)
              throws IOException,
                     ServletException
Commences an authentication scheme.

ExceptionTranslationFilter will populate the HttpSession attribute named AbstractAuthenticationProcessingFilter.SPRING_SECURITY_SAVED_REQUEST_KEY with the requested target URL before calling this method.

Implementations should modify the headers on the ServletResponse as necessary to commence the authentication process.

Parameters:
request - that resulted in an AuthenticationException
response - so that the user agent can begin authentication
authException - that caused the invocation
Throws:
IOException
ServletException


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