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
ConstructorsConstructorDescriptionClientAuthorizationException(OAuth2Error error, String clientRegistrationId) Constructs aClientAuthorizationExceptionusing the provided parameters.ClientAuthorizationException(OAuth2Error error, String clientRegistrationId, String message) Constructs aClientAuthorizationExceptionusing the provided parameters.ClientAuthorizationException(OAuth2Error error, String clientRegistrationId, String message, Throwable cause) Constructs aClientAuthorizationExceptionusing the provided parameters.ClientAuthorizationException(OAuth2Error error, String clientRegistrationId, Throwable cause) Constructs aClientAuthorizationExceptionusing 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
getErrorMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
- 
Constructor Details
- 
ClientAuthorizationException
Constructs aClientAuthorizationExceptionusing the provided parameters.- Parameters:
 error- theOAuth 2.0 ErrorclientRegistrationId- the identifier for the client's registration
 - 
ClientAuthorizationException
Constructs aClientAuthorizationExceptionusing the provided parameters.- Parameters:
 error- theOAuth 2.0 ErrorclientRegistrationId- the identifier for the client's registrationmessage- the exception message
 - 
ClientAuthorizationException
public ClientAuthorizationException(OAuth2Error error, String clientRegistrationId, Throwable cause) Constructs aClientAuthorizationExceptionusing the provided parameters.- Parameters:
 error- theOAuth 2.0 ErrorclientRegistrationId- the identifier for the client's registrationcause- the root cause
 - 
ClientAuthorizationException
public ClientAuthorizationException(OAuth2Error error, String clientRegistrationId, String message, Throwable cause) Constructs aClientAuthorizationExceptionusing the provided parameters.- Parameters:
 error- theOAuth 2.0 ErrorclientRegistrationId- 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
 
 
 -