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 |
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, tenantId
maxRetry, proxyOptions, retryTimeout
public 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 AuthorizationCodeCredential build()
AuthorizationCodeCredential
with the current configurations.AuthorizationCodeCredential
with the current configurations.Copyright © 2019 Microsoft Corporation. All rights reserved.