Class InvalidClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linecorp.armeria.common.auth.oauth2.TokenRequestException
com.linecorp.armeria.common.auth.oauth2.InvalidClientException
- All Implemented Interfaces:
Serializable
Client authentication failed (e.g., unknown client, no client authentication included, or
unsupported authentication method). The authorization server MAY return an HTTP 401
(Unauthorized) status code to indicate which HTTP authentication schemes are supported. If the
client attempted to authenticate via the "Authorization" request header field, the authorization
server MUST respond with an HTTP 401 (Unauthorized) status code and include the
"WWW-Authenticate" response header field matching the authentication scheme used by the client.
- See Also:
-
Constructor Summary
ConstructorDescriptionInvalidClientException
(String errorDescription, @Nullable String errorUri) InvalidClientException
(String errorDescription, @Nullable String errorUri, Throwable cause) -
Method Summary
Methods inherited from class com.linecorp.armeria.common.auth.oauth2.TokenRequestException
getErrorUri, parse
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidClientException
- Parameters:
errorDescription
- OPTIONAL. Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred. Values for theerrorDescription
parameter MUST NOT include characters outside the set%x20-21
/%x23-5B
/%x5D-7E
.errorUri
- 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. Values for theerrorUri
parameter MUST conform to the URI-reference syntax and thus MUST NOT include characters outside the set%x21
/%x23-5B
/%x5D-7E
.
-
InvalidClientException
public InvalidClientException(String errorDescription, @Nullable @Nullable String errorUri, Throwable cause) - Parameters:
errorDescription
- OPTIONAL. Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred. Values for theerrorDescription
parameter MUST NOT include characters outside the set%x20-21
/%x23-5B
/%x5D-7E
.errorUri
- 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. Values for theerrorUri
parameter MUST conform to the URI-reference syntax and thus MUST NOT include characters outside the set%x21
/%x23-5B
/%x5D-7E
.cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)
-