org.springframework.security.oauth2.provider.error
Class OAuth2AccessDeniedHandler

java.lang.Object
  extended by org.springframework.security.oauth2.provider.error.AbstractOAuth2SecurityExceptionHandler
      extended by org.springframework.security.oauth2.provider.error.OAuth2AccessDeniedHandler
All Implemented Interfaces:
org.springframework.security.web.access.AccessDeniedHandler

public class OAuth2AccessDeniedHandler
extends AbstractOAuth2SecurityExceptionHandler
implements org.springframework.security.web.access.AccessDeniedHandler

If authorization fails and the caller has asked for a specific content type response, this entry point can send one, along with a standard 403 status. Add to the Spring Security configuration as an AccessDeniedHandler in the usual way.

Author:
Dave Syer

Field Summary
 
Fields inherited from class org.springframework.security.oauth2.provider.error.AbstractOAuth2SecurityExceptionHandler
logger
 
Constructor Summary
OAuth2AccessDeniedHandler()
           
 
Method Summary
 void handle(HttpServletRequest request, HttpServletResponse response, org.springframework.security.access.AccessDeniedException authException)
           
 
Methods inherited from class org.springframework.security.oauth2.provider.error.AbstractOAuth2SecurityExceptionHandler
doHandle, enhanceResponse, setExceptionRenderer, setExceptionTranslator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuth2AccessDeniedHandler

public OAuth2AccessDeniedHandler()
Method Detail

handle

public void handle(HttpServletRequest request,
                   HttpServletResponse response,
                   org.springframework.security.access.AccessDeniedException authException)
            throws IOException,
                   ServletException
Specified by:
handle in interface org.springframework.security.web.access.AccessDeniedHandler
Throws:
IOException
ServletException


Copyright © 2012. All Rights Reserved.