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
public class InvalidClientException extends GeneralException
Invalid client exception. Selected static instances are provided to speed up exception processing.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static InvalidClientException
BAD_ID
Badclient_id
.static InvalidClientException
BAD_JWT_HMAC
Bad JWT HMAC.static InvalidClientException
BAD_JWT_SIGNATURE
Bad JWT signature.static InvalidClientException
BAD_SECRET
Badclient_secret
.static InvalidClientException
BAD_SELF_SIGNED_CLIENT_CERTIFICATE
Bad self-signed client X.509 certificate.static InvalidClientException
EXPIRED_SECRET
Expiredclient_secret
.static InvalidClientException
NO_MATCHING_JWK
No matching public JWKs for JWT signature verification found.static InvalidClientException
NO_REGISTERED_JWK_SET
The client has no registered JWK set.static InvalidClientException
NO_REGISTERED_SECRET
The client has no registeredclient_secret
.static InvalidClientException
NOT_REGISTERED_FOR_AUTH_METHOD
The client is not registered for the requested authentication method.
-
Constructor Summary
Constructors Constructor Description InvalidClientException(String message)
Creates a new invalid client exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorObject
getErrorObject()
Returns 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 Detail
-
BAD_ID
public static final InvalidClientException BAD_ID
Badclient_id
.
-
NOT_REGISTERED_FOR_AUTH_METHOD
public static final InvalidClientException NOT_REGISTERED_FOR_AUTH_METHOD
The client is not registered for the requested authentication method.
-
NO_REGISTERED_SECRET
public static final InvalidClientException NO_REGISTERED_SECRET
The client has no registeredclient_secret
.
-
NO_REGISTERED_JWK_SET
public static final InvalidClientException NO_REGISTERED_JWK_SET
The client has no registered JWK set.
-
EXPIRED_SECRET
public static final InvalidClientException EXPIRED_SECRET
Expiredclient_secret
.
-
BAD_SECRET
public static final InvalidClientException BAD_SECRET
Badclient_secret
.
-
BAD_JWT_HMAC
public static final InvalidClientException BAD_JWT_HMAC
Bad JWT HMAC.
-
NO_MATCHING_JWK
public static final InvalidClientException NO_MATCHING_JWK
No matching public JWKs for JWT signature verification found.
-
BAD_JWT_SIGNATURE
public static final InvalidClientException BAD_JWT_SIGNATURE
Bad JWT signature.
-
BAD_SELF_SIGNED_CLIENT_CERTIFICATE
public static final InvalidClientException BAD_SELF_SIGNED_CLIENT_CERTIFICATE
Bad self-signed client X.509 certificate.
-
-
Constructor Detail
-
InvalidClientException
public InvalidClientException(String message)
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 Detail
-
getErrorObject
public ErrorObject getErrorObject()
Returns an OAuth 2.0 error object representation.- Overrides:
getErrorObject
in classGeneralException
- Returns:
OAuth2Error.INVALID_CLIENT
.
-
-