org.springframework.security.oauth2.provider.error
类 OAuth2AuthenticationEntryPoint
java.lang.Object
org.springframework.security.oauth2.provider.error.AbstractOAuth2SecurityExceptionHandler
org.springframework.security.oauth2.provider.error.OAuth2AuthenticationEntryPoint
- 所有已实现的接口:
- org.springframework.security.web.AuthenticationEntryPoint
public class OAuth2AuthenticationEntryPoint
- extends AbstractOAuth2SecurityExceptionHandler
- implements org.springframework.security.web.AuthenticationEntryPoint
If authentication fails and the caller has asked for a specific content type response, this entry point can send one,
along with a standard 401 status. Add to the Spring Security configuration as an AuthenticationEntryPoint in
the usual way.
- 作者:
- Dave Syer
|
方法摘要 |
void |
commence(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException authException)
|
protected org.springframework.http.ResponseEntity<OAuth2Exception> |
enhanceResponse(org.springframework.http.ResponseEntity<OAuth2Exception> response,
Exception exception)
Allow subclasses to manipulate the response before it is rendered. |
void |
setRealmName(String realmName)
|
void |
setTypeName(String typeName)
|
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OAuth2AuthenticationEntryPoint
public OAuth2AuthenticationEntryPoint()
setRealmName
public void setRealmName(String realmName)
setTypeName
public void setTypeName(String typeName)
commence
public void commence(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException authException)
throws IOException,
javax.servlet.ServletException
- 指定者:
- 接口
org.springframework.security.web.AuthenticationEntryPoint 中的 commence
- 抛出:
IOException
javax.servlet.ServletException
enhanceResponse
protected org.springframework.http.ResponseEntity<OAuth2Exception> enhanceResponse(org.springframework.http.ResponseEntity<OAuth2Exception> response,
Exception exception)
- 从类
AbstractOAuth2SecurityExceptionHandler 复制的描述
- Allow subclasses to manipulate the response before it is rendered.
- 覆盖:
- 类
AbstractOAuth2SecurityExceptionHandler 中的 enhanceResponse
- 参数:
response - the response that was generated by the
exception translator.exception - the authentication exception that is being handled
Copyright © 2013. All rights reserved.