Class OAuth2Error
java.lang.Object
org.springframework.security.oauth2.core.OAuth2Error
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BearerTokenError
A representation of an OAuth 2.0 Error.
At a minimum, an error response will contain an error code. The error code may be one of the standard codes defined by the specification, or a new code defined in the OAuth Extensions Error Registry, for cases where protocol extensions require additional error code(s) above the standard codes.
- Since:
- 5.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOAuth2Error
(String errorCode) Constructs anOAuth2Error
using the provided parameters.OAuth2Error
(String errorCode, String description, String uri) Constructs anOAuth2Error
using the provided parameters. -
Method Summary
-
Constructor Details
-
OAuth2Error
Constructs anOAuth2Error
using the provided parameters.- Parameters:
errorCode
- the error code
-
OAuth2Error
Constructs anOAuth2Error
using the provided parameters.- Parameters:
errorCode
- the error codedescription
- the error descriptionuri
- the error uri
-
-
Method Details