public static enum DeviceCompleteRequest.Result extends Enum<DeviceCompleteRequest.Result>
| Enum Constant and Description |
|---|
ACCESS_DENIED
The end-user denied the device authorization request.
|
AUTHORIZED
The end-user was authenticated and has granted authorization to
the client application.
|
TRANSACTION_FAILED
The authorization server could not get decision from the end-user
for some reasons.
|
| Modifier and Type | Method and Description |
|---|---|
static DeviceCompleteRequest.Result |
getByValue(short value)
Find an instance of this enum by a value.
|
short |
getValue()
Get the integer representation of this enum instance.
|
static DeviceCompleteRequest.Result |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeviceCompleteRequest.Result[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeviceCompleteRequest.Result AUTHORIZED
public static final DeviceCompleteRequest.Result ACCESS_DENIED
public static final DeviceCompleteRequest.Result TRANSACTION_FAILED
This result can be used as a generic error.
public static DeviceCompleteRequest.Result[] values()
for (DeviceCompleteRequest.Result c : DeviceCompleteRequest.Result.values()) System.out.println(c);
public static DeviceCompleteRequest.Result valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic short getValue()
public static DeviceCompleteRequest.Result getByValue(short value)
value - The integer representation of the instance to find.null if not found.Copyright © 2019. All rights reserved.