Class OAuth2Exception
-
- All Implemented Interfaces:
-
java.io.Serializable
public class OAuth2Exception extends IOExceptionIndicates a OAuth2 error response during the authorization.
-
-
Field Summary
Fields Modifier and Type Field Description public Stringcodepublic Stringdescriptionpublic Stringuripublic Stringstate
-
Constructor Summary
Constructors Constructor Description OAuth2Exception(String code, String description, String uri, String state)Creates a OAuth2Exception with the specified error information.
-
Method Summary
Modifier and Type Method Description StringgetCode()The error code as specified by the error parameter in the OAuth error response. StringgetDescription()Text providing additional information about the error that occurred. StringgetUri()A URI identifying a human-readable web page with information about the error. StringgetState()The state parameter that was present in the client authorization request. -
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
OAuth2Exception
OAuth2Exception(String code, String description, String uri, String state)
Creates a OAuth2Exception with the specified error information.- Parameters:
code- The error code.description- The error description.uri- The error URI.state- The state for the authorization request.
-
-
Method Detail
-
getCode
@NonNull() String getCode()
The error code as specified by the error parameter in the OAuth error response.
- Returns:
The error code.
-
getDescription
@Nullable() String getDescription()
Text providing additional information about the error that occurred. This field maps to the error_description parameter in the returned OAuth error response.
- Returns:
The error description.
-
getUri
@Nullable() String getUri()
A URI identifying a human-readable web page with information about the error. This field maps to the error_uri parameter in the returned OAuth error response.
- Returns:
The URI.
-
getState
@Nullable() String getState()
The state parameter that was present in the client authorization request.
- Returns:
The state parameter.
-
-
-
-