nu.localhost.tapestry5.springsecurity.services.internal
Class SpringSecurityExceptionTranslationFilter
java.lang.Object
org.springframework.security.ui.SpringSecurityFilter
nu.localhost.tapestry5.springsecurity.services.internal.SpringSecurityExceptionTranslationFilter
- All Implemented Interfaces:
- Filter, org.springframework.core.Ordered
public class SpringSecurityExceptionTranslationFilter
- extends SpringSecurityFilter
- Author:
- Ben Alex, Colin Sampaleanu, Robin Helgelin, Michael Gerzabek
| Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
SpringSecurityExceptionTranslationFilter
public SpringSecurityExceptionTranslationFilter()
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Throws:
Exception
doFilterHttp
public void doFilterHttp(HttpServletRequest request,
HttpServletResponse response,
FilterChain chain)
throws IOException,
ServletException
- Specified by:
doFilterHttp in class SpringSecurityFilter
- Throws:
IOException
ServletException
doFilterHttp
public void doFilterHttp(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ServletException
- Throws:
IOException
ServletException
getAuthenticationEntryPoint
public AuthenticationEntryPoint getAuthenticationEntryPoint()
getAuthenticationTrustResolver
public AuthenticationTrustResolver getAuthenticationTrustResolver()
getPortResolver
public PortResolver getPortResolver()
isCreateSessionAllowed
public boolean isCreateSessionAllowed()
- If
true, indicates that
SecurityEnforcementFilter is permitted to store the target
URL and exception information in the HttpSession (the
default). In situations where you do not wish to unnecessarily create
HttpSessions - because the user agent will know the
failed URL, such as with BASIC or Digest authentication - you may wish to
set this property to false. Remember to also set the
HttpSessionContextIntegrationFilter.allowSessionCreation
to false if you set this property to false.
- Returns:
true if the HttpSession will be
used to store information about the failed request,
false if the HttpSession will not
be used
sendStartAuthentication
protected void sendStartAuthentication(ServletRequest request,
ServletResponse response,
FilterChain chain,
AuthenticationException reason)
throws ServletException,
IOException
- Throws:
ServletException
IOException
setAccessDeniedHandler
public void setAccessDeniedHandler(AccessDeniedHandler accessDeniedHandler)
setAuthenticationEntryPoint
public void setAuthenticationEntryPoint(AuthenticationEntryPoint authenticationEntryPoint)
setAuthenticationTrustResolver
public void setAuthenticationTrustResolver(AuthenticationTrustResolver authenticationTrustResolver)
setCreateSessionAllowed
public void setCreateSessionAllowed(boolean createSessionAllowed)
setPortResolver
public void setPortResolver(PortResolver portResolver)
setThrowableAnalyzer
public void setThrowableAnalyzer(ThrowableAnalyzer throwableAnalyzer)
getOrder
public int getOrder()
Copyright © 2007-2009 Robin Helgelin. All Rights Reserved.