public class InvalidScopeException extends OAuth2Exception
Constructor and Description |
---|
InvalidScopeException()
Constructs a new InvalidScopeException with the default message.
|
InvalidScopeException(String message)
Constructs a new InvalidScopeException with the specified message.
|
InvalidScopeException(String message,
OAuth2Constants.UrlLocation parameterLocation)
Constructs a new InvalidScopeException with the specified message.
|
Modifier and Type | Method and Description |
---|---|
static InvalidScopeException |
create(String message,
OAuth2Request request)
Creates a new InvalidScopeException by deducing the UrlLocation from the OAuth2Request.
|
getError, getParameterLocation, getStatusCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidScopeException()
public InvalidScopeException(String message)
OAuth2Constants.UrlLocation
for the parameters are defaulted to QUERY.message
- The reason for the exception.public InvalidScopeException(String message, OAuth2Constants.UrlLocation parameterLocation)
message
- The reason for the exception.parameterLocation
- Indicates the location of the parameters in the URL.public static InvalidScopeException create(String message, OAuth2Request request)
message
- The reason for the exception.request
- The request from which we can work out what UrlLocation is needed.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.