org.springframework.security.oauth2.provider.filter
Class OAuth2ExceptionHandlerFilter

java.lang.Object
  extended by org.springframework.web.filter.GenericFilterBean
      extended by org.springframework.security.oauth2.provider.filter.OAuth2ExceptionHandlerFilter
All Implemented Interfaces:
Filter, Aware, BeanNameAware, DisposableBean, InitializingBean, EnvironmentAware, ServletContextAware

public class OAuth2ExceptionHandlerFilter
extends GenericFilterBean

Filter for handling OAuth2-specific exceptions.

Author:
Ryan Heaton, Dave Syer

Field Summary
 
Fields inherited from class org.springframework.web.filter.GenericFilterBean
logger
 
Constructor Summary
OAuth2ExceptionHandlerFilter()
           
 
Method Summary
 void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
           
 void setExceptionRenderer(OAuth2ExceptionRenderer exceptionRenderer)
           
 void setProviderExceptionHandler(ProviderExceptionHandler providerExceptionHandler)
           
 
Methods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, afterPropertiesSet, destroy, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuth2ExceptionHandlerFilter

public OAuth2ExceptionHandlerFilter()
Method Detail

doFilter

public void doFilter(ServletRequest req,
                     ServletResponse res,
                     FilterChain chain)
              throws IOException,
                     ServletException
Throws:
IOException
ServletException

setProviderExceptionHandler

public void setProviderExceptionHandler(ProviderExceptionHandler providerExceptionHandler)

setExceptionRenderer

public void setExceptionRenderer(OAuth2ExceptionRenderer exceptionRenderer)


Copyright © 2012. All Rights Reserved.