public class DeviceCodeCredentialBuilder extends AadCredentialBuilderBase<DeviceCodeCredentialBuilder>
DeviceCodeCredential.DeviceCodeCredential| Constructor and Description |
|---|
DeviceCodeCredentialBuilder() |
| Modifier and Type | Method and Description |
|---|---|
DeviceCodeCredential |
build()
Creates a new
DeviceCodeCredential with the current configurations. |
DeviceCodeCredentialBuilder |
challengeConsumer(Consumer<DeviceCodeInfo> challengeConsumer)
Sets the consumer to meet the device code challenge.
|
authorityHost, clientId, executorService, tenantIdhttpClient, httpPipeline, maxRetry, proxyOptions, retryTimeoutpublic DeviceCodeCredentialBuilder challengeConsumer(Consumer<DeviceCodeInfo> challengeConsumer)
challengeConsumer - A method allowing the user to meet the device code challenge.public DeviceCodeCredential build()
DeviceCodeCredential with the current configurations.DeviceCodeCredential with the current configurations.Copyright © 2021 Microsoft Corporation. All rights reserved.