Package com.azure.identity
Class DeviceCodeInfo
java.lang.Object
com.azure.identity.DeviceCodeInfo
Response returned from the STS device code endpoint containing information necessary for
device code flow.
-
Constructor Summary
ConstructorDescriptionDeviceCodeInfo
(String userCode, String deviceCode, String verificationUrl, OffsetDateTime expiresOn, String message) Creates an instance of a device code info. -
Method Summary
Modifier and TypeMethodDescriptionGets the code which should be included in the request for the access token.Gets the expiration time of device code.Gets the message which should be displayed to the user.Gets the code which user needs to provide when authenticating at the verification URL.Gets the URL where user can authenticate.
-
Constructor Details
-
DeviceCodeInfo
public DeviceCodeInfo(String userCode, String deviceCode, String verificationUrl, OffsetDateTime expiresOn, String message) Creates an instance of a device code info.- Parameters:
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 user
-
-
Method Details
-
getUserCode
Gets the code which user needs to provide when authenticating at the verification URL.- Returns:
- code which user needs to provide when authenticating at the verification URL.
-
getDeviceCode
Gets the code which should be included in the request for the access token.- Returns:
- code which should be included in the request for the access token.
-
getVerificationUrl
Gets the URL where user can authenticate.- Returns:
- URL where user can authenticate.
-
getExpiresOn
Gets the expiration time of device code.- Returns:
- expiration time of device code.
-
getMessage
Gets the message which should be displayed to the user.- Returns:
- message which should be displayed to the user.
-