public final class DeviceCode extends Object implements com.azure.json.JsonSerializable<DeviceCode>
| Constructor and Description |
|---|
DeviceCode() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
clientId() |
protected DeviceCode |
clientId(String clientId) |
protected String |
correlationId() |
protected DeviceCode |
correlationId(String correlationId) |
String |
deviceCode()
code which should be included in the request for the access token
|
long |
expiresIn()
expiration time of device code in seconds.
|
static DeviceCode |
fromJson(com.azure.json.JsonReader jsonReader) |
long |
interval()
interval at which the STS should be polled at
|
String |
message()
message which should be displayed to the user.
|
protected String |
scopes() |
protected DeviceCode |
scopes(String scopes) |
com.azure.json.JsonWriter |
toJson(com.azure.json.JsonWriter jsonWriter) |
String |
userCode()
code which user needs to provide when authenticating at the verification URI
|
String |
verificationUri()
URI where user can authenticate
|
public static DeviceCode fromJson(com.azure.json.JsonReader jsonReader) throws IOException
fromJson in interface com.azure.json.JsonSerializable<DeviceCode>IOExceptionpublic com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter)
throws IOException
toJson in interface com.azure.json.JsonSerializable<DeviceCode>IOExceptionpublic String userCode()
public String deviceCode()
public String verificationUri()
public long expiresIn()
public long interval()
public String message()
protected String correlationId()
protected String clientId()
protected String scopes()
protected DeviceCode correlationId(String correlationId)
protected DeviceCode clientId(String clientId)
protected DeviceCode scopes(String scopes)
Copyright © 2013–2025. All rights reserved.