Class InvalidClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.nimbusds.oauth2.sdk.GeneralException
com.nimbusds.oauth2.sdk.auth.verifier.InvalidClientException
- All Implemented Interfaces:
Serializable
Invalid client exception. Selected static instances are provided to speed up
exception processing.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final InvalidClientException
Badclient_id
.static final InvalidClientException
Bad JWT HMAC.static final InvalidClientException
Bad JWT signature.static final InvalidClientException
Badclient_secret
.static final InvalidClientException
Bad self-signed client X.509 certificate.static final InvalidClientException
Expiredclient_secret
.static final InvalidClientException
No matching public JWKs for JWT signature verification found.static final InvalidClientException
The client has no registered JWK set.static final InvalidClientException
The client has no registeredclient_secret
.static final InvalidClientException
The client is not registered for the requested authentication method. -
Constructor Summary
ConstructorsConstructorDescriptionInvalidClientException
(String message) Creates a new invalid client exception. -
Method Summary
Modifier and TypeMethodDescriptionReturns an OAuth 2.0 error object representation.Methods inherited from class com.nimbusds.oauth2.sdk.GeneralException
getClientID, getRedirectionURI, getResponseMode, getState
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
BAD_ID
Badclient_id
. -
NOT_REGISTERED_FOR_AUTH_METHOD
The client is not registered for the requested authentication method. -
NO_REGISTERED_SECRET
The client has no registeredclient_secret
. -
NO_REGISTERED_JWK_SET
The client has no registered JWK set. -
EXPIRED_SECRET
Expiredclient_secret
. -
BAD_SECRET
Badclient_secret
. -
BAD_JWT_HMAC
Bad JWT HMAC. -
NO_MATCHING_JWK
No matching public JWKs for JWT signature verification found. -
BAD_JWT_SIGNATURE
Bad JWT signature. -
BAD_SELF_SIGNED_CLIENT_CERTIFICATE
Bad self-signed client X.509 certificate.
-
-
Constructor Details
-
InvalidClientException
Creates a new invalid client exception.- Parameters:
message
- The message. Will not be appended to the OAuth 2.0 error description to be prevent exposing details about why authentication didn't succeed to the client.
-
-
Method Details
-
getErrorObject
Returns an OAuth 2.0 error object representation.- Overrides:
getErrorObject
in classGeneralException
- Returns:
OAuth2Error.INVALID_CLIENT
.
-