Class ClientAuthorizationRequiredException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.springframework.security.oauth2.core.OAuth2AuthorizationException
-
- org.springframework.security.oauth2.client.ClientAuthorizationException
-
- org.springframework.security.oauth2.client.ClientAuthorizationRequiredException
-
- All Implemented Interfaces:
java.io.Serializable
public class ClientAuthorizationRequiredException extends ClientAuthorizationException
This exception is thrown when an OAuth 2.0 Client is required to obtain authorization from the Resource Owner.- Since:
- 5.1
- See Also:
OAuth2AuthorizedClient
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClientAuthorizationRequiredException(java.lang.String clientRegistrationId)
Constructs aClientAuthorizationRequiredException
using the provided parameters.
-
Method Summary
-
Methods inherited from class org.springframework.security.oauth2.client.ClientAuthorizationException
getClientRegistrationId
-
Methods inherited from class org.springframework.security.oauth2.core.OAuth2AuthorizationException
getError
-
-
-
-
Constructor Detail
-
ClientAuthorizationRequiredException
public ClientAuthorizationRequiredException(java.lang.String clientRegistrationId)
Constructs aClientAuthorizationRequiredException
using the provided parameters.- Parameters:
clientRegistrationId
- the identifier for the client's registration
-
-