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 port for the local HTTP server, for which
http://localhost:{port} must be
registered as a valid reply URL on the application. |
authorityHost, clientId, tenantId
maxRetry, proxyOptions, retryTimeout
public DeviceCodeCredentialBuilder challengeConsumer(Consumer<DeviceCodeInfo> challengeConsumer)
http://localhost:{port}
must be
registered as a valid reply URL on the application.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 © 2019 Microsoft Corporation. All rights reserved.