public class DeviceCodeInfo extends Object
| Constructor and Description |
|---|
DeviceCodeInfo(String userCode,
String deviceCode,
String verificationUrl,
OffsetDateTime expiresOn,
String message)
Creates an instance of a device code info.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDeviceCode()
Gets the code which should be included in the request for the access token.
|
OffsetDateTime |
getExpiresOn()
Gets the expiration time of device code.
|
String |
getMessage()
Gets the message which should be displayed to the user.
|
String |
getUserCode()
Gets the code which user needs to provide when authenticating at the verification URL.
|
String |
getVerificationUrl()
Gets the URL where user can authenticate.
|
public DeviceCodeInfo(String userCode, String deviceCode, String verificationUrl, OffsetDateTime expiresOn, String message)
userCode - code which user needs to provide when authenticating at the verification URLdeviceCode - code which should be included in the request for the access tokenverificationUrl - URL where user can authenticateexpiresOn - expiration time of device code in secondsmessage - message which should be displayed to the userpublic String getUserCode()
public String getDeviceCode()
public String getVerificationUrl()
public OffsetDateTime getExpiresOn()
public String getMessage()
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.