org.springframework.security.oauth2.provider.error
Class OAuth2AccessDeniedHandler
java.lang.Object
org.springframework.security.oauth2.provider.error.AbstractOAuth2SecurityExceptionHandler
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
|
Method Summary |
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.access.AccessDeniedException authException)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OAuth2AccessDeniedHandler
public OAuth2AccessDeniedHandler()
handle
public void handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.access.AccessDeniedException authException)
throws IOException,
javax.servlet.ServletException
- Specified by:
handle in interface org.springframework.security.web.access.AccessDeniedHandler
- Throws:
IOException
javax.servlet.ServletException
Copyright © 2013. All rights reserved.