Class ClientAuthorizationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.security.oauth2.core.OAuth2AuthorizationException
org.springframework.security.oauth2.client.ClientAuthorizationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClientAuthorizationRequiredException
This exception is thrown on the client side when an attempt to authenticate or
authorize an OAuth 2.0 client fails.
- Since:
- 5.3
- See Also:
-
Constructor Summary
ConstructorDescriptionClientAuthorizationException
(OAuth2Error error, String clientRegistrationId) Constructs aClientAuthorizationException
using the provided parameters.ClientAuthorizationException
(OAuth2Error error, String clientRegistrationId, String message) Constructs aClientAuthorizationException
using the provided parameters.ClientAuthorizationException
(OAuth2Error error, String clientRegistrationId, String message, Throwable cause) Constructs aClientAuthorizationException
using the provided parameters.ClientAuthorizationException
(OAuth2Error error, String clientRegistrationId, Throwable cause) Constructs aClientAuthorizationException
using the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturns the identifier for the client's registration.Methods inherited from class org.springframework.security.oauth2.core.OAuth2AuthorizationException
getError
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ClientAuthorizationException
Constructs aClientAuthorizationException
using the provided parameters.- Parameters:
error
- theOAuth 2.0 Error
clientRegistrationId
- the identifier for the client's registration
-
ClientAuthorizationException
Constructs aClientAuthorizationException
using the provided parameters.- Parameters:
error
- theOAuth 2.0 Error
clientRegistrationId
- the identifier for the client's registrationmessage
- the exception message
-
ClientAuthorizationException
public ClientAuthorizationException(OAuth2Error error, String clientRegistrationId, Throwable cause) Constructs aClientAuthorizationException
using the provided parameters.- Parameters:
error
- theOAuth 2.0 Error
clientRegistrationId
- the identifier for the client's registrationcause
- the root cause
-
ClientAuthorizationException
public ClientAuthorizationException(OAuth2Error error, String clientRegistrationId, String message, Throwable cause) Constructs aClientAuthorizationException
using the provided parameters.- Parameters:
error
- theOAuth 2.0 Error
clientRegistrationId
- the identifier for the client's registrationmessage
- the exception messagecause
- the root cause
-
-
Method Details
-
getClientRegistrationId
Returns the identifier for the client's registration.- Returns:
- the identifier for the client's registration
-