public final class OAuthTokenStatus extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OAuthTokenStatus.ErrorCode
Possible values for the error_code.
|
| Constructor and Description |
|---|
OAuthTokenStatus(OAuthTokenStatus.ErrorCode errorCode)
Constructs an OAuthTokenStatus with the given ErrorCode.
|
OAuthTokenStatus(OAuthTokenStatus.ErrorCode errorCode,
String errorDescription)
Constructs an OAuthTokenStatus with the given ErrorCode and error
description.
|
OAuthTokenStatus(OAuthTokenStatus.ErrorCode errorCode,
String errorDescription,
String scope)
Constructs an OAuthTokenStatus with the given ErrorCode, error
description, and scope value.
|
| Modifier and Type | Method and Description |
|---|---|
OAuthTokenStatus.ErrorCode |
getErrorCode()
Gets the specified ErrorCode for this OAuthTokenStatus.
|
String |
getErrorDescription()
Gets the specified error description for this OAuthTokenStatus.
|
String |
getScope()
Gets the specified OAuth scope for this OAuthTokenStatus.
|
public OAuthTokenStatus(OAuthTokenStatus.ErrorCode errorCode)
errorCode - the OAuthTokenStatus.ErrorCode to use. This must not be
null.public OAuthTokenStatus(OAuthTokenStatus.ErrorCode errorCode, String errorDescription)
errorCode - the OAuthTokenStatus.ErrorCode to use. This must not be
null.errorDescription - a human-readable description of the error. This may
be null.public OAuthTokenStatus(OAuthTokenStatus.ErrorCode errorCode, String errorDescription, String scope)
errorCode - the OAuthTokenStatus.ErrorCode to use. This must not be
null.errorDescription - a human-readable description of the error. This may
be null.scope - a space-delimited list of case-sensitive scope values
indicating the required scope of the access token for
accessing the requested resource. Scope values are
implementation defined; there is no centralized registry for
them; allowed values are defined by the authorization server.
The order of scope values is not significant. This may be
null.public OAuthTokenStatus.ErrorCode getErrorCode()
OAuthTokenStatus.ErrorCode instance.public String getErrorDescription()
null if none was specified.public String getScope()
null if no scope was specified.Copyright © 2011–2016 UnboundID. All rights reserved.