Class DelegateCredentialsProvider.DelegateCredentialsProviderBuilder
- java.lang.Object
-
- software.amazon.awssdk.crt.auth.credentials.DelegateCredentialsProvider.DelegateCredentialsProviderBuilder
-
- Enclosing class:
- DelegateCredentialsProvider
public static class DelegateCredentialsProvider.DelegateCredentialsProviderBuilder extends Object
A simple builder class for a delegate credentials provider and its options
-
-
Constructor Summary
Constructors Constructor Description DelegateCredentialsProviderBuilder()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DelegateCredentialsProvider
build()
Builds a new delegate credentials provider using the builder's configurationDelegateCredentialsProvider.DelegateCredentialsProviderBuilder
withHandler(DelegateCredentialsHandler handler)
Sets the delegate this provider should use for sourcing credentials
-
-
-
Method Detail
-
withHandler
public DelegateCredentialsProvider.DelegateCredentialsProviderBuilder withHandler(DelegateCredentialsHandler handler)
Sets the delegate this provider should use for sourcing credentials- Parameters:
handler
- credentials-sourcing delegate- Returns:
- this builder object
-
build
public DelegateCredentialsProvider build()
Builds a new delegate credentials provider using the builder's configuration- Returns:
- a new delegate credentials provider
-
-