Interface SdkTokenProviderChain.Builder
- Enclosing class:
SdkTokenProviderChain
public static interface SdkTokenProviderChain.Builder
A builder for a
SdkTokenProviderChain
that allows controlling its behavior.-
Method Summary
Modifier and TypeMethodDescriptiondefault SdkTokenProviderChain.Builder
addTokenProvider
(SdkTokenProvider tokenProvider) Add a token provider to the chain, after the token providers that have already been configured.default SdkTokenProviderChain.Builder
addTokenProvider
(IdentityProvider<? extends TokenIdentity> tokenProvider) Add a token provider to the chain, after the token providers that have already been configured.build()
reuseLastProviderEnabled
(Boolean reuseLastProviderEnabled) Controls whether the chain should reuse the last successful token provider in the chain.tokenIdentityProviders
(Collection<? extends IdentityProvider<? extends TokenIdentity>> tokenProviders) Configure the token providers that should be checked for token, in the order they should be checked.tokenProviders
(Collection<? extends SdkTokenProvider> tokenProviders) Configure the token providers that should be checked for token, in the order they should be checked.default SdkTokenProviderChain.Builder
tokenProviders
(SdkTokenProvider... tokenProviders) Configure the token providers that should be checked for token, in the order they should be checked.default SdkTokenProviderChain.Builder
tokenProviders
(IdentityProvider<? extends TokenIdentity>... tokenProviders) Configure the token providers that should be checked for token, in the order they should be checked.
-
Method Details
-
reuseLastProviderEnabled
Controls whether the chain should reuse the last successful token provider in the chain. Reusing the last successful token provider will typically return token faster than searching through the chain.By default, this is enabled
-
tokenProviders
Configure the token providers that should be checked for token, in the order they should be checked. -
tokenIdentityProviders
SdkTokenProviderChain.Builder tokenIdentityProviders(Collection<? extends IdentityProvider<? extends TokenIdentity>> tokenProviders) Configure the token providers that should be checked for token, in the order they should be checked. -
tokenProviders
Configure the token providers that should be checked for token, in the order they should be checked. -
tokenProviders
default SdkTokenProviderChain.Builder tokenProviders(IdentityProvider<? extends TokenIdentity>... tokenProviders) Configure the token providers that should be checked for token, in the order they should be checked. -
addTokenProvider
Add a token provider to the chain, after the token providers that have already been configured. -
addTokenProvider
default SdkTokenProviderChain.Builder addTokenProvider(IdentityProvider<? extends TokenIdentity> tokenProvider) Add a token provider to the chain, after the token providers that have already been configured. -
build
SdkTokenProviderChain build()
-