public static class ProcessCredentialsProvider.Builder extends Object
ProcessCredentialsProvider
. See ProcessCredentialsProvider.builder()
creation.Modifier and Type | Method and Description |
---|---|
ProcessCredentialsProvider.Builder |
asyncCredentialUpdateEnabled(Boolean asyncCredentialUpdateEnabled)
Configure whether the provider should fetch credentials asynchronously in the background.
|
ProcessCredentialsProvider |
build() |
ProcessCredentialsProvider.Builder |
command(String command)
Configure the command that should be executed to retrieve credentials.
|
ProcessCredentialsProvider.Builder |
credentialRefreshThreshold(Duration credentialRefreshThreshold)
Configure the amount of time between when the credentials expire and when the credentials should start to be
refreshed.
|
ProcessCredentialsProvider.Builder |
processOutputLimit(long outputByteLimit)
Configure the maximum amount of data that can be returned by the external process before an exception is
raised.
|
public ProcessCredentialsProvider.Builder asyncCredentialUpdateEnabled(Boolean asyncCredentialUpdateEnabled)
By default, this is disabled.
public ProcessCredentialsProvider.Builder command(String command)
public ProcessCredentialsProvider.Builder credentialRefreshThreshold(Duration credentialRefreshThreshold)
Default: 15 seconds.
public ProcessCredentialsProvider.Builder processOutputLimit(long outputByteLimit)
Default: 1024 bytes.
public ProcessCredentialsProvider build()
Copyright © 2019. All rights reserved.