org.springframework.security.oauth2.common.exceptions
Class 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
- All Implemented Interfaces:
- 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.
- Author:
- Ryan Heaton, Dave Syer
- See Also:
- Serialized Form
| Fields inherited from class 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()
- Description copied from class:
OAuth2Exception
- The OAuth2 error code.
- Overrides:
getOAuth2ErrorCode in class OAuth2Exception
- Returns:
- The OAuth2 error code.
Copyright © 2013. All rights reserved.