DeviceCode 类
- java.
lang. Object - com.
microsoft. aad. msal4j. DeviceCode
- com.
实现
public final class DeviceCode
implements JsonSerializable<DeviceCode>
从 STS 设备代码终结点返回的响应,其中包含设备代码流所需的信息
构造函数摘要
| 构造函数 | 说明 | |
|---|---|---|
| DeviceCode() | ||
方法摘要
| 修饰符和类型 | 方法和描述 |
|---|---|
| protected java.lang.String | clientId() |
|
protected
Device |
clientId(String clientId) |
| protected java.lang.String | correlationId() |
|
protected
Device |
correlationId(String correlationId) |
| java.lang.String |
deviceCode()
应包含在访问令牌请求中的代码 |
| long |
expiresIn()
设备代码的过期时间(以秒为单位)。 |
|
static
Device |
fromJson(JsonReader jsonReader) |
| long |
interval()
STS 的轮询间隔 |
| java.lang.String |
message()
应向用户显示的消息。 |
| protected java.lang.String | scopes() |
|
protected
Device |
scopes(String scopes) |
|
Json |
toJson(JsonWriter jsonWriter) |
| java.lang.String |
userCode()
验证 URI 时用户需要提供的代码 |
| java.lang.String |
verificationUri()
用户可以进行身份验证的 URI |
方法继承自 java.lang.Object
构造函数详细信息
DeviceCode
public DeviceCode()
方法详细信息
clientId
protected String clientId()
clientId
protected DeviceCode clientId(String clientId)
参数:
correlationId
protected String correlationId()
correlationId
protected DeviceCode correlationId(String correlationId)
参数:
deviceCode
public String deviceCode()
应包含在访问令牌请求中的代码
expiresIn
public long expiresIn()
设备代码的过期时间(以秒为单位)。
fromJson
public static DeviceCode fromJson(JsonReader jsonReader)
参数:
引发:
interval
public long interval()
STS 的轮询间隔
message
public String message()
应向用户显示的消息。
scopes
protected String scopes()
scopes
protected DeviceCode scopes(String scopes)
参数:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
参数:
引发:
userCode
public String userCode()
验证 URI 时用户需要提供的代码
verificationUri
public String verificationUri()
用户可以进行身份验证的 URI