Class OAuth2ErrorResponseErrorHandler
- java.lang.Object
-
- org.springframework.security.oauth2.client.http.OAuth2ErrorResponseErrorHandler
-
- All Implemented Interfaces:
org.springframework.web.client.ResponseErrorHandler
public class OAuth2ErrorResponseErrorHandler extends java.lang.Object implements org.springframework.web.client.ResponseErrorHandlerAResponseErrorHandlerthat handles anOAuth 2.0 Error.- Since:
- 5.1
- See Also:
ResponseErrorHandler,OAuth2Error
-
-
Constructor Summary
Constructors Constructor Description OAuth2ErrorResponseErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleError(org.springframework.http.client.ClientHttpResponse response)booleanhasError(org.springframework.http.client.ClientHttpResponse response)voidsetErrorConverter(org.springframework.http.converter.HttpMessageConverter<org.springframework.security.oauth2.core.OAuth2Error> oauth2ErrorConverter)Sets theHttpMessageConverterfor an OAuth 2.0 Error.
-
-
-
Method Detail
-
hasError
public boolean hasError(org.springframework.http.client.ClientHttpResponse response) throws java.io.IOException- Specified by:
hasErrorin interfaceorg.springframework.web.client.ResponseErrorHandler- Throws:
java.io.IOException
-
handleError
public void handleError(org.springframework.http.client.ClientHttpResponse response) throws java.io.IOException- Specified by:
handleErrorin interfaceorg.springframework.web.client.ResponseErrorHandler- Throws:
java.io.IOException
-
setErrorConverter
public final void setErrorConverter(org.springframework.http.converter.HttpMessageConverter<org.springframework.security.oauth2.core.OAuth2Error> oauth2ErrorConverter)
Sets theHttpMessageConverterfor an OAuth 2.0 Error.- Parameters:
oauth2ErrorConverter- AHttpMessageConverterfor anOAuth 2.0 Error.- Since:
- 5.7
-
-