Class InvalidScopeException

    • Constructor Detail

      • InvalidScopeException

        public InvalidScopeException()
        Constructs a new InvalidScopeException with the default message.
      • InvalidScopeException

        public InvalidScopeException​(String message)
        Constructs a new InvalidScopeException with the specified message. The OAuth2Constants.UrlLocation for the parameters are defaulted to QUERY.
        Parameters:
        message - The reason for the exception.
      • InvalidScopeException

        public InvalidScopeException​(String message,
                                     OAuth2Constants.UrlLocation parameterLocation)
        Constructs a new InvalidScopeException with the specified message.
        Parameters:
        message - The reason for the exception.
        parameterLocation - Indicates the location of the parameters in the URL.
    • Method Detail

      • create

        public static InvalidScopeException create​(String message,
                                                   OAuth2Request request)
        Creates a new InvalidScopeException by deducing the UrlLocation from the OAuth2Request.
        Parameters:
        message - The reason for the exception.
        request - The request from which we can work out what UrlLocation is needed.
        Returns:
        The created exception.