DeviceCode Class
- java.
lang. Object - com.
microsoft. aad. msal4j. DeviceCode
- com.
public final class DeviceCode
Response returned from the STS device code endpoint containing information necessary for device code flow
Constructor Summary
Constructor | Description | |
---|---|---|
DeviceCode() |
Method Summary
Modifier and Type | Method and Description |
---|---|
protected java.lang.String | clientId() |
protected
Device |
clientId(String clientId) |
protected java.lang.String | correlationId() |
protected
Device |
correlationId(String correlationId) |
java.lang.String |
deviceCode()
code which should be included in the request for the access token |
long |
expiresIn()
expiration time of device code in seconds. |
long |
interval()
interval at which the STS should be polled at |
java.lang.String |
message()
message which should be displayed to the user. |
protected java.lang.String | scopes() |
protected
Device |
scopes(String scopes) |
java.lang.String |
userCode()
code which user needs to provide when authenticating at the verification URI |
java.lang.String |
verificationUri()
URI where user can authenticate |
Methods inherited from java.lang.Object
Constructor Details
DeviceCode
public DeviceCode()
Method Details
clientId
protected String clientId()
clientId
protected DeviceCode clientId(String clientId)
Parameters:
correlationId
protected String correlationId()
correlationId
protected DeviceCode correlationId(String correlationId)
Parameters:
deviceCode
public String deviceCode()
code which should be included in the request for the access token
expiresIn
public long expiresIn()
expiration time of device code in seconds.
interval
public long interval()
interval at which the STS should be polled at
message
public String message()
message which should be displayed to the user.
scopes
protected String scopes()
scopes
protected DeviceCode scopes(String scopes)
Parameters:
userCode
public String userCode()
code which user needs to provide when authenticating at the verification URI
verificationUri
public String verificationUri()
URI where user can authenticate