Interface StsWebIdentityCredentialsProvider.Builder
- Enclosing class:
- StsWebIdentityCredentialsProvider
public static interface StsWebIdentityCredentialsProvider.Builder
A builder for creating an STS web identity credentials provider.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an STS web identity credentials provider using the configuration applied to this builder.withClientBootstrap(ClientBootstrap clientBootstrap) Sets the client bootstrap (host resolver and event loop group) to use when making the connections required by this provider.withTlsContext(TlsContext tlsContext) Sets the tls context to use for any secure network connections made while sourcing credentials.
-
Method Details
-
withClientBootstrap
Sets the client bootstrap (host resolver and event loop group) to use when making the connections required by this provider. The default is a bootstrap which uses the static default event loop group and host resolver.- Parameters:
clientBootstrap- client bootstrap to use- Returns:
- The current builder
-
withTlsContext
Sets the tls context to use for any secure network connections made while sourcing credentials.- Parameters:
tlsContext- the tls context to use when establishing network connections- Returns:
- The current builder
-
build
Create an STS web identity credentials provider using the configuration applied to this builder.- Returns:
- A new STS web identity credentials provider.
-