public class InsufficientScopeException extends OAuth2Exception
AccessDeniedException
and should result in a 403 (FORBIDDEN) HTTP status.ACCESS_DENIED, DESCRIPTION, ERROR, INSUFFICIENT_SCOPE, INVALID_CLIENT, INVALID_GRANT, INVALID_REQUEST, INVALID_SCOPE, INVALID_TOKEN, REDIRECT_URI_MISMATCH, UNAUTHORIZED_CLIENT, UNSUPPORTED_GRANT_TYPE, UNSUPPORTED_RESPONSE_TYPE, URI
Constructor and Description |
---|
InsufficientScopeException(String msg) |
InsufficientScopeException(String msg,
Set<String> validScope) |
Modifier and Type | Method and Description |
---|---|
int |
getHttpErrorCode()
The HTTP error code associated with this error.
|
String |
getOAuth2ErrorCode()
The OAuth2 error code.
|
addAdditionalInformation, create, getAdditionalInformation, getSummary, toString, valueOf
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public InsufficientScopeException(String msg)
public int getHttpErrorCode()
OAuth2Exception
getHttpErrorCode
in class OAuth2Exception
public String getOAuth2ErrorCode()
OAuth2Exception
getOAuth2ErrorCode
in class OAuth2Exception
Copyright © 2019. All rights reserved.