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 |
addAll(Collection<? extends com.azure.core.credential.TokenCredential> credentials)
Adds all of the credentials in the specified collection at the end
of this chain, as if by calling
ChainedTokenCredentialBuilder.addLast(TokenCredential) on each one,
in the order that they are returned by the collection's iterator. |
ChainedTokenCredentialBuilder |
addFirst(com.azure.core.credential.TokenCredential credential)
Adds a credential to try to authenticate at the front of the chain.
|
ChainedTokenCredentialBuilder |
addLast(com.azure.core.credential.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(com.azure.core.credential.TokenCredential credential)
credential - the credential to be added to the front of chainpublic ChainedTokenCredentialBuilder addLast(com.azure.core.credential.TokenCredential credential)
credential - the credential to be added to the end of chainpublic ChainedTokenCredentialBuilder addAll(Collection<? extends com.azure.core.credential.TokenCredential> credentials)
ChainedTokenCredentialBuilder.addLast(TokenCredential) on each one,
in the order that they are returned by the collection's iterator.credentials - the collection of credentials to be appended to the chain.public ChainedTokenCredential build()
ChainedTokenCredential with the current configurations.ChainedTokenCredential with the current configurations.Copyright © 2020 Microsoft Corporation. All rights reserved.