public class OAuth2Exception
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
java.lang.String |
description
Text providing additional information about the error
|
int |
error
Error code
|
static int |
ERROR_EXTERNAL
Code for the OAuth2 external error
|
static int |
ERROR_INVALID_CLIENT
Code for the invalid_client error
|
static int |
ERROR_INVALID_GRANT
Code for the invalid_grant error
|
static int |
ERROR_INVALID_REQUEST
Code for the invalid_request error
|
static int |
ERROR_INVALID_SCOPE
Code for the invalid_scope error
|
static int |
ERROR_UNAUTHORIZED_CLIENT
Code for the unauthorized_client error
|
static int |
ERROR_UNSUPPORTED_GRANT_TYPE
Code for the unsupported_grant_type error
|
java.lang.String |
state
The state value.
|
java.lang.String |
uri
A URI identifying a web page with information about the error
|
Constructor and Description |
---|
OAuth2Exception(java.util.Hashtable t)
Creates the Exception object
|
OAuth2Exception(java.lang.String msg)
Creates the Exception object with the ERROR_EXTERNAL error code
|
OAuth2Exception(java.lang.String error,
java.lang.String error_description,
java.lang.String error_uri,
java.lang.String state)
Creates the Exception object
|
public static final int ERROR_EXTERNAL
public static final int ERROR_INVALID_REQUEST
public static final int ERROR_INVALID_CLIENT
public static final int ERROR_INVALID_GRANT
public static final int ERROR_UNAUTHORIZED_CLIENT
public static final int ERROR_UNSUPPORTED_GRANT_TYPE
public static final int ERROR_INVALID_SCOPE
public final int error
public final java.lang.String description
public final java.lang.String uri
public final java.lang.String state
public OAuth2Exception(java.lang.String msg)
msg
- the exception messagepublic OAuth2Exception(java.lang.String error, java.lang.String error_description, java.lang.String error_uri, java.lang.String state)
error
- error codeerror_description
- error descriptionerror_uri
- error uristate
- the state valuepublic OAuth2Exception(java.util.Hashtable t)
t
- hashtable with dataCopyright © 2013, 2014, Oracle and/or its affiliates. All rights reserved.