public static class CachedCredentialsProvider.CachedCredentialsProviderBuilder extends Object
| Constructor and Description |
|---|
CachedCredentialsProviderBuilder() |
| Modifier and Type | Method and Description |
|---|---|
CachedCredentialsProvider |
build()
Builds a new caching credentials provider
|
CachedCredentialsProvider.CachedCredentialsProviderBuilder |
withCachedProvider(CredentialsProvider cachedProvider)
Sets the credentials provider to cache results from
|
CachedCredentialsProvider.CachedCredentialsProviderBuilder |
withCachingDurationInSeconds(int cachingDurationInSeconds)
Sets the maximum caching duration for any credentials sourced through this provider.
|
public CachedCredentialsProvider.CachedCredentialsProviderBuilder withCachingDurationInSeconds(int cachingDurationInSeconds)
cachingDurationInSeconds - maximum caching duration in seconds of sourced credentialspublic CachedCredentialsProvider.CachedCredentialsProviderBuilder withCachedProvider(CredentialsProvider cachedProvider)
cachedProvider - credentials provider to cache results frompublic CachedCredentialsProvider build()
Copyright © 2021. All rights reserved.