public class UsernamePasswordCredentialBuilder extends AadCredentialBuilderBase<UsernamePasswordCredentialBuilder>
UsernamePasswordCredential
.UsernamePasswordCredential
Constructor and Description |
---|
UsernamePasswordCredentialBuilder() |
Modifier and Type | Method and Description |
---|---|
UsernamePasswordCredential |
build()
Creates a new
UsernamePasswordCredential with the current configurations. |
UsernamePasswordCredentialBuilder |
password(String password)
Sets the password of the user.
|
UsernamePasswordCredentialBuilder |
username(String username)
Sets the username of the user.
|
authorityHost, clientId, tenantId
maxRetry, proxyOptions, retryTimeout
public UsernamePasswordCredentialBuilder username(String username)
username
- the username of the userpublic UsernamePasswordCredentialBuilder password(String password)
password
- the password of the userpublic UsernamePasswordCredential build()
UsernamePasswordCredential
with the current configurations.UsernamePasswordCredential
with the current configurations.Copyright © 2019 Microsoft Corporation. All rights reserved.