org.springframework.security.oauth2.provider.error
类 AbstractOAuth2SecurityExceptionHandler
java.lang.Object
org.springframework.security.oauth2.provider.error.AbstractOAuth2SecurityExceptionHandler
- 直接已知子类:
- OAuth2AccessDeniedHandler, OAuth2AuthenticationEntryPoint
public abstract class AbstractOAuth2SecurityExceptionHandler
- extends Object
Convenient base class containing utility methods and dependency setters for security error handling concerns specific
to OAuth2 resources.
- 作者:
- Dave Syer
|
字段摘要 |
protected org.apache.commons.logging.Log |
logger
Logger available to subclasses |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.apache.commons.logging.Log logger
- Logger available to subclasses
AbstractOAuth2SecurityExceptionHandler
public AbstractOAuth2SecurityExceptionHandler()
setExceptionTranslator
public void setExceptionTranslator(WebResponseExceptionTranslator exceptionTranslator)
setExceptionRenderer
public void setExceptionRenderer(OAuth2ExceptionRenderer exceptionRenderer)
doHandle
protected final void doHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Exception authException)
throws IOException,
javax.servlet.ServletException
- 抛出:
IOException
javax.servlet.ServletException
enhanceResponse
protected org.springframework.http.ResponseEntity<OAuth2Exception> enhanceResponse(org.springframework.http.ResponseEntity<OAuth2Exception> result,
Exception authException)
- Allow subclasses to manipulate the response before it is rendered.
- 参数:
result - the response that was generated by the
exception translator.authException - the authentication exception that is being handled
Copyright © 2013. All rights reserved.