org.springframework.security.oauth2.common.exceptions
类 InvalidScopeException
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.InvalidScopeException
- 所有已实现的接口:
- Serializable
public class InvalidScopeException
- extends OAuth2Exception
Exception representing an invalid scope in a token or authorization request (i.e. from an Authorization Server). Note
that this is not the same as an access denied exception if the scope presented to a Resource Server is insufficient.
The spec in this case mandates a 400 status code.
- 作者:
- Ryan Heaton, 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 |
InvalidScopeException
public InvalidScopeException(String msg,
Set<String> validScope)
InvalidScopeException
public InvalidScopeException(String msg)
getOAuth2ErrorCode
public String getOAuth2ErrorCode()
- 从类
OAuth2Exception 复制的描述
- The OAuth2 error code.
- 覆盖:
- 类
OAuth2Exception 中的 getOAuth2ErrorCode
- 返回:
- The OAuth2 error code.
Copyright © 2013. All rights reserved.