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:
java.io.Serializable
- Direct Known Subclasses:
ClientAuthorizationRequiredException
public class ClientAuthorizationException extends OAuth2AuthorizationException
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:
OAuth2AuthorizedClient
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClientAuthorizationException(OAuth2Error error, java.lang.String clientRegistrationId)
Constructs aClientAuthorizationException
using the provided parameters.ClientAuthorizationException(OAuth2Error error, java.lang.String clientRegistrationId, java.lang.String message)
Constructs aClientAuthorizationException
using the provided parameters.ClientAuthorizationException(OAuth2Error error, java.lang.String clientRegistrationId, java.lang.String message, java.lang.Throwable cause)
Constructs aClientAuthorizationException
using the provided parameters.ClientAuthorizationException(OAuth2Error error, java.lang.String clientRegistrationId, java.lang.Throwable cause)
Constructs aClientAuthorizationException
using the provided parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClientRegistrationId()
Returns the identifier for the client's registration.-
Methods inherited from class org.springframework.security.oauth2.core.OAuth2AuthorizationException
getError
-
-
-
-
Constructor Detail
-
ClientAuthorizationException
public ClientAuthorizationException(OAuth2Error error, java.lang.String clientRegistrationId)
Constructs aClientAuthorizationException
using the provided parameters.- Parameters:
error
- theOAuth 2.0 Error
clientRegistrationId
- the identifier for the client's registration
-
ClientAuthorizationException
public ClientAuthorizationException(OAuth2Error error, java.lang.String clientRegistrationId, java.lang.String message)
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, java.lang.String clientRegistrationId, java.lang.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, java.lang.String clientRegistrationId, java.lang.String message, java.lang.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
-
-