org.springframework.security.oauth2.common.exceptions
类 InsufficientScopeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.security.oauth2.common.exceptions.OAuth2Exception
org.springframework.security.oauth2.common.exceptions.InsufficientScopeException
- 所有已实现的接口:
- Serializable
public class InsufficientScopeException
- extends OAuth2Exception
Exception representing insufficient scope in a token when a request is handled by a Resource Server. It is akin to an
AccessDeniedException and should result in a 403 (FORBIDDEN) HTTP status.
- 作者:
- Dave Syer
- 另请参见:
- 序列化表格
| 从类 org.springframework.security.oauth2.common.exceptions.OAuth2Exception 继承的字段 |
ACCESS_DENIED, DESCRIPTION, ERROR, INVALID_CLIENT, INVALID_GRANT, INVALID_REQUEST, INVALID_SCOPE, INVALID_TOKEN, REDIRECT_URI_MISMATCH, UNAUTHORIZED_CLIENT, UNSUPPORTED_GRANT_TYPE, UNSUPPORTED_RESPONSE_TYPE, URI |
InsufficientScopeException
public InsufficientScopeException(String msg,
Set<String> validScope)
InsufficientScopeException
public InsufficientScopeException(String msg)
getHttpErrorCode
public int getHttpErrorCode()
- 从类
OAuth2Exception 复制的描述
- The HTTP error code associated with this error.
- 覆盖:
- 类
OAuth2Exception 中的 getHttpErrorCode
- 返回:
- The HTTP error code associated with this error.
getOAuth2ErrorCode
public String getOAuth2ErrorCode()
- 从类
OAuth2Exception 复制的描述
- The OAuth2 error code.
- 覆盖:
- 类
OAuth2Exception 中的 getOAuth2ErrorCode
- 返回:
- The OAuth2 error code.
Copyright © 2013. All rights reserved.