public class ChainedTokenCredentialBuilder extends Object
ChainedTokenCredential
.ChainedTokenCredential
Constructor and Description |
---|
ChainedTokenCredentialBuilder()
Creates an instance of the builder to config the credential.
|
Modifier and Type | Method and Description |
---|---|
ChainedTokenCredentialBuilder |
addFirst(TokenCredential credential)
Adds a credential to try to authenticate at the front of the chain.
|
ChainedTokenCredentialBuilder |
addLast(TokenCredential credential)
Adds a credential to try to authenticate at the last of the chain.
|
ChainedTokenCredential |
build()
Creates a new
ChainedTokenCredential with the current configurations. |
public ChainedTokenCredentialBuilder()
public ChainedTokenCredentialBuilder addFirst(TokenCredential credential)
credential
- the credential to be added to the front of chainpublic ChainedTokenCredentialBuilder addLast(TokenCredential credential)
credential
- the credential to be added to the end of chainpublic ChainedTokenCredential build()
ChainedTokenCredential
with the current configurations.ChainedTokenCredential
with the current configurations.Copyright © 2019 Microsoft Corporation. All rights reserved.