Class OAuth2Constants.Error

    • Field Detail

      • ERROR_DESCRIPTION

        public static final String ERROR_DESCRIPTION
        OPTIONAL. A human-readable UTF-8 encoded text providing additional information, used to assist the client developer in understanding the error that occurred.
        See Also:
        Constant Field Values
      • ERROR_URI

        public static final String ERROR_URI
        OPTIONAL. A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
        See Also:
        Constant Field Values
      • INVALID_REQUEST

        public static final String INVALID_REQUEST
        The request is missing a required parameter, includes an invalid parameter value, or is otherwise malformed.
        See Also:
        Constant Field Values
      • METHOD_NOT_ALLOWED

        public static final String METHOD_NOT_ALLOWED
        The request is using the incorrect method.
        See Also:
        Constant Field Values
      • UNAUTHORIZED_CLIENT

        public static final String UNAUTHORIZED_CLIENT
        The client is not authorized to request an access token using this method.
        See Also:
        Constant Field Values
      • ACCESS_DENIED

        public static final String ACCESS_DENIED
        The resource owner or authorization server denied the request.
        See Also:
        Constant Field Values
      • UNSUPPORTED_RESPONSE_TYPE

        public static final String UNSUPPORTED_RESPONSE_TYPE
        The authorization server does not support obtaining an access token using this method.
        See Also:
        Constant Field Values
      • INVALID_SCOPE

        public static final String INVALID_SCOPE
        The requested scope is invalid, unknown, or malformed.
        See Also:
        Constant Field Values
      • SERVER_ERROR

        public static final String SERVER_ERROR
        The authorization server encountered an unexpected condition which prevented it from fulfilling the request.
        See Also:
        Constant Field Values
      • TEMPORARILY_UNAVAILABLE

        public static final String TEMPORARILY_UNAVAILABLE
        The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
        See Also:
        Constant Field Values
      • INVALID_TOKEN

        public static final String INVALID_TOKEN
        The access token provided is expired, revoked, malformed, or invalid for other reasons. The resource SHOULD respond with the HTTP 401 (Unauthorized) status code. The client MAY request a new access token and retry the protected resource request.
        See Also:
        Error Codes, Constant Field Values
      • INSUFFICIENT_SCOPE

        public static final String INSUFFICIENT_SCOPE
        The request requires higher privileges than provided by the access token. The resource server SHOULD respond with the HTTP 403 (Forbidden) status code and MAY include the "scope" attribute with the scope necessary to access the protected resource.
        See Also:
        Error Codes, Constant Field Values
      • EXPIRED_TOKEN

        public static final String EXPIRED_TOKEN
        The access token provided has expired. Resource servers SHOULD only use this error code when the client is expected to be able to handle the response and request a new access token using the refresh token issued with the expired access token. The resource server MUST respond with the HTTP 401 (Unauthorized) status code.
        See Also:
        5.2.1. Error Codes, Constant Field Values
      • INVALID_CLIENT

        public static final String INVALID_CLIENT
        The client identifier provided is invalid, the client failed to authenticate, the client did not include its credentials, provided multiple client credentials, or used unsupported credentials type.
        See Also:
        4.3.1. Error Codes, Constant Field Values
      • UNKNOWN_ERROR

        public static final String UNKNOWN_ERROR
        Handles all errors that don't stem from invalid requests -- e.g., perhaps errors resulting from databases that are down or logic errors in code.
        See Also:
        4.3.1. Error Codes, Constant Field Values
      • INVALID_GRANT

        public static final String INVALID_GRANT
        The provided access grant is invalid, expired, or revoked (e.g. invalid assertion, expired authorization token, bad end-user password credentials, or mismatching authorization code and redirection URI).
        See Also:
        4.3.1. Error Codes, Constant Field Values
      • UNSUPPORTED_GRANT_TYPE

        public static final String UNSUPPORTED_GRANT_TYPE
        The provided access grant is invalid, expired, or revoked (e.g. invalid assertion, expired authorization token, bad end-user password credentials, or mismatching authorization code and redirection URI).
        See Also:
        4.3.1. Error Codes, Constant Field Values
      • UNSUPPORTED_AUTH_TYPE

        public static final String UNSUPPORTED_AUTH_TYPE
        The requested authentication type is not supported by the authorization server.
        See Also:
        Constant Field Values
      • INVALID_CLIENT_METADATA

        public static final String INVALID_CLIENT_METADATA
        The request contains invalid client metadata.
        See Also:
        Constant Field Values
      • INTERACTION_REQUIRED

        public static final String INTERACTION_REQUIRED
        OpenID Connect interaction required error
        See Also:
        Constant Field Values
    • Constructor Detail

      • Error

        public Error()