Class OAuth20InvalidScopeException

All Implemented Interfaces:
Serializable

public class OAuth20InvalidScopeException extends OAuth20Exception
Represents an invalid request scope exception in an OAuth request.
See Also:
  • Constructor Details

    • OAuth20InvalidScopeException

      public OAuth20InvalidScopeException(String[] requestedScope, String[] approvedScope)
      Creates a OAuth20InvalidScopeException.
      Parameters:
      requestedScope - An array of requested scopes in an OAuth request.
      approvedScope - An array of authorized scopes for an OAuth request.
    • OAuth20InvalidScopeException

      public OAuth20InvalidScopeException(String msgKey, String[] requestedScope, String[] approvedScope)
    • OAuth20InvalidScopeException

      public OAuth20InvalidScopeException(String msgKey, String[] requestedScope, String[] approvedScope, String clientId)
    • OAuth20InvalidScopeException

      public OAuth20InvalidScopeException(String msgKey, String requestType)
      Parameters:
      msgKey -
      requestType -
    • OAuth20InvalidScopeException

      public OAuth20InvalidScopeException(String msgKey, String requestType, String clientId)
      Parameters:
      msgKey -
      requestType -
      clientId -
  • Method Details

    • formatSelf

      public String formatSelf(Locale locale, String encoding)
      Overrides:
      formatSelf in class OAuth20Exception
    • getRequestedScope

      public String[] getRequestedScope()
      Returns:
      an array of requested scopes.
    • getApprovedScope

      public String[] getApprovedScope()
      Returns:
      an array of approved scopes.