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:
Serializable
This exception is thrown when an OAuth 2.0 Client is required to obtain authorization
from the Resource Owner.
- Since:
- 5.1
- See Also:
-
Constructor Summary
ConstructorDescriptionClientAuthorizationRequiredException
(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
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ClientAuthorizationRequiredException
Constructs aClientAuthorizationRequiredException
using the provided parameters.- Parameters:
clientRegistrationId
- the identifier for the client's registration
-