DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder Class
- java.
lang. Object - com.
microsoft. aad. msal4j. DeviceCodeFlowParameters. DeviceCodeFlowParametersBuilder
- com.
public static class DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Device |
build() |
|
Device |
claims(ClaimsRequest claims)
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims |
|
Device |
deviceCodeConsumer(Consumer<DeviceCode> deviceCodeConsumer)
Receives the device code returned from the first step of Oauth2.0 device code flow. |
|
Device |
extraHttpHeaders(Map<String,String> extraHttpHeaders)
Adds additional headers to the token request |
|
Device |
extraQueryParameters(Map<String,String> extraQueryParameters)
Deprecated
Not recommended for production scenarios. It will be removed in a future release, and the behavior may be replaced by a new API.
Adds additional query parameters to the token request |
|
Device |
scopes(Set<String> scopes)
Scopes to which the application is requesting access to. |
|
Device |
tenant(String tenant)
Overrides the tenant value in the authority URL for this request |
| java.lang.String | toString() |
Methods inherited from java.lang.Object
Method Details
build
public DeviceCodeFlowParameters build()
claims
public DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder claims(ClaimsRequest claims)
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims
Parameters:
deviceCodeConsumer
public DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder deviceCodeConsumer(Consumer<DeviceCode> deviceCodeConsumer)
Receives the device code returned from the first step of Oauth2.0 device code flow. The DeviceCode#verificationUri and the DeviceCode#userCode should be shown to the end user.
For more details, see https://aka.ms/msal4j-device-code
Cannot be null.
Parameters:
extraHttpHeaders
public DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder extraHttpHeaders(Map<String,String> extraHttpHeaders)
Adds additional headers to the token request
Parameters:
extraQueryParameters
public DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder extraQueryParameters(Map<String,String> extraQueryParameters)
Deprecated
Adds additional query parameters to the token request
Parameters:
scopes
public DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder scopes(Set<String> scopes)
Scopes to which the application is requesting access to.
Cannot be null.
Parameters:
tenant
public DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder tenant(String tenant)
Overrides the tenant value in the authority URL for this request
Parameters:
toString
public String toString()
Overrides:
DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder.toString()