nu.localhost.tapestry5.springsecurity.services.internal
Class SpringSecurityExceptionTranslationFilter

java.lang.Object
  extended by org.springframework.security.ui.SpringSecurityFilter
      extended by 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

Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
SpringSecurityExceptionTranslationFilter()
           
 
Method Summary
 void afterPropertiesSet()
           
 void doFilterHttp(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
           
 void doFilterHttp(ServletRequest request, ServletResponse response, FilterChain chain)
           
 AuthenticationEntryPoint getAuthenticationEntryPoint()
           
 AuthenticationTrustResolver getAuthenticationTrustResolver()
           
 int getOrder()
           
 PortResolver getPortResolver()
           
 boolean isCreateSessionAllowed()
          If true, indicates that SecurityEnforcementFilter is permitted to store the target URL and exception information in the HttpSession (the default).
protected  void sendStartAuthentication(ServletRequest request, ServletResponse response, FilterChain chain, AuthenticationException reason)
           
 void setAccessDeniedHandler(AccessDeniedHandler accessDeniedHandler)
           
 void setAuthenticationEntryPoint(AuthenticationEntryPoint authenticationEntryPoint)
           
 void setAuthenticationTrustResolver(AuthenticationTrustResolver authenticationTrustResolver)
           
 void setCreateSessionAllowed(boolean createSessionAllowed)
           
 void setPortResolver(PortResolver portResolver)
           
 void setThrowableAnalyzer(ThrowableAnalyzer throwableAnalyzer)
           
 
Methods inherited from class org.springframework.security.ui.SpringSecurityFilter
destroy, doFilter, init, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpringSecurityExceptionTranslationFilter

public SpringSecurityExceptionTranslationFilter()
Method Detail

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.