Class OAuth2ErrorResponseErrorHandler
java.lang.Object
org.springframework.security.oauth2.client.http.OAuth2ErrorResponseErrorHandler
- All Implemented Interfaces:
org.springframework.web.client.ResponseErrorHandler
public class OAuth2ErrorResponseErrorHandler
extends Object
implements org.springframework.web.client.ResponseErrorHandler
A
ResponseErrorHandler
that handles an OAuth 2.0 Error
.- Since:
- 5.1
- See Also:
-
ResponseErrorHandler
OAuth2Error
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleError
(org.springframework.http.client.ClientHttpResponse response) boolean
hasError
(org.springframework.http.client.ClientHttpResponse response) final void
setErrorConverter
(org.springframework.http.converter.HttpMessageConverter<OAuth2Error> oauth2ErrorConverter) Sets theHttpMessageConverter
for an OAuth 2.0 Error.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.client.ResponseErrorHandler
handleError
-
Constructor Details
-
OAuth2ErrorResponseErrorHandler
public OAuth2ErrorResponseErrorHandler()
-
-
Method Details
-
hasError
public boolean hasError(org.springframework.http.client.ClientHttpResponse response) throws IOException - Specified by:
hasError
in interfaceorg.springframework.web.client.ResponseErrorHandler
- Throws:
IOException
-
handleError
public void handleError(org.springframework.http.client.ClientHttpResponse response) throws IOException - Specified by:
handleError
in interfaceorg.springframework.web.client.ResponseErrorHandler
- Throws:
IOException
-
setErrorConverter
public final void setErrorConverter(org.springframework.http.converter.HttpMessageConverter<OAuth2Error> oauth2ErrorConverter) Sets theHttpMessageConverter
for an OAuth 2.0 Error.- Parameters:
oauth2ErrorConverter
- AHttpMessageConverter
for anOAuth 2.0 Error
.- Since:
- 5.7
-