Class OAuth20InvalidScopeException

  • All Implemented Interfaces:
    java.io.Serializable

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

      • OAuth20InvalidScopeException

        public OAuth20InvalidScopeException​(java.lang.String[] requestedScope,
                                            java.lang.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​(java.lang.String msgKey,
                                            java.lang.String[] requestedScope,
                                            java.lang.String[] approvedScope)
      • OAuth20InvalidScopeException

        public OAuth20InvalidScopeException​(java.lang.String msgKey,
                                            java.lang.String[] requestedScope,
                                            java.lang.String[] approvedScope,
                                            java.lang.String clientId)
      • OAuth20InvalidScopeException

        public OAuth20InvalidScopeException​(java.lang.String msgKey,
                                            java.lang.String requestType)
        Parameters:
        msgKey -
        requestType -
      • OAuth20InvalidScopeException

        public OAuth20InvalidScopeException​(java.lang.String msgKey,
                                            java.lang.String requestType,
                                            java.lang.String clientId)
        Parameters:
        msgKey -
        requestType -
        clientId -
    • Method Detail

      • formatSelf

        public java.lang.String formatSelf​(java.util.Locale locale,
                                           java.lang.String encoding)
        Overrides:
        formatSelf in class OAuth20Exception
      • getRequestedScope

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

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