DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder 类
- java.
lang. Object - com.
microsoft. aad. msal4j. DeviceCodeFlowParameters. DeviceCodeFlowParametersBuilder
- com.
public static class DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder
方法摘要
| 修饰符和类型 | 方法和描述 |
|---|---|
|
Device |
build() |
|
Device |
claims(ClaimsRequest claims)
通过 OIDC 声明请求参数请求的声明,允许对标准和自定义声明的请求 |
|
Device |
deviceCodeConsumer(@NonNull Consumer<DeviceCode> deviceCodeConsumer)
接收从 Oauth2.0 设备代码流的第一步返回的设备代码。 |
|
Device |
extraHttpHeaders(Map<String,String> extraHttpHeaders)
向令牌请求添加其他标头 |
|
Device |
extraQueryParameters(Map<String,String> extraQueryParameters)
将其他查询参数添加到令牌请求 |
|
Device |
scopes(@NonNull Set<String> scopes)
应用程序请求访问的范围。 |
|
Device |
tenant(String tenant)
替代此请求的颁发机构 URL 中的租户值 |
| java.lang.String | toString() |
方法继承自 java.lang.Object
方法详细信息
build
public DeviceCodeFlowParameters build()
claims
public DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder claims(ClaimsRequest claims)
通过 OIDC 声明请求参数请求的声明,允许对标准和自定义声明的请求
参数:
返回:
this。deviceCodeConsumer
public DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder deviceCodeConsumer(@NonNull Consumer<DeviceCode> deviceCodeConsumer)
接收从 Oauth2.0 设备代码流的第一步返回的设备代码。 DeviceCode#verificationUri应向最终用户显示和DeviceCode#userCode显示。
有关详细信息,请参阅 https://aka.ms/msal4j-device-code
参数:
返回:
this。extraHttpHeaders
public DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder extraHttpHeaders(Map<String,String> extraHttpHeaders)
向令牌请求添加其他标头
参数:
返回:
this。extraQueryParameters
public DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder extraQueryParameters(Map<String,String> extraQueryParameters)
将其他查询参数添加到令牌请求
参数:
返回:
this。scopes
public DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder scopes(@NonNull Set<String> scopes)
应用程序请求访问的范围。
参数:
返回:
this。tenant
public DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder tenant(String tenant)
替代此请求的颁发机构 URL 中的租户值
参数:
返回:
this。toString
public String toString()
替代:
DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder.toString()