public class AuthorizationCodeCredentialBuilder extends AadCredentialBuilderBase<AuthorizationCodeCredentialBuilder>
AuthorizationCodeCredential.AuthorizationCodeCredential| Constructor and Description |
|---|
AuthorizationCodeCredentialBuilder() |
| Modifier and Type | Method and Description |
|---|---|
AuthorizationCodeCredentialBuilder |
authorizationCode(String authCode)
Sets the authorization code on the builder.
|
AuthorizationCodeCredential |
build()
Creates a new
AuthorizationCodeCredential with the current configurations. |
AuthorizationCodeCredentialBuilder |
clientSecret(String clientSecret)
Sets the client secret for the authentication.
|
AuthorizationCodeCredentialBuilder |
redirectUrl(String redirectUrl)
Sets redirect URL for the Oauth 2.0 login request, which must be
registered as a valid redirect URL on the application.
|
authorityHost, clientId, executorService, tenantIdhttpClient, httpPipeline, maxRetry, proxyOptions, retryTimeoutpublic AuthorizationCodeCredentialBuilder authorizationCode(String authCode)
authCode - the authorization code acquired from user loginpublic AuthorizationCodeCredentialBuilder redirectUrl(String redirectUrl)
AuthorizationCodeCredential construction from there.
This is also called Reply URLs in some contexts.redirectUrl - the redirect URL to send the authorization codepublic AuthorizationCodeCredentialBuilder clientSecret(String clientSecret)
clientSecret - the secret value of the AAD application.public AuthorizationCodeCredential build()
AuthorizationCodeCredential with the current configurations.AuthorizationCodeCredential with the current configurations.Copyright © 2020 Microsoft Corporation. All rights reserved.