protected static final class SsoCredentialsProvider.BuilderImpl extends Object implements SsoCredentialsProvider.Builder
| Modifier and Type | Method and Description |
|---|---|
SsoCredentialsProvider.Builder |
asyncCredentialUpdateEnabled(Boolean asyncCredentialUpdateEnabled)
Configure whether the provider should fetch credentials asynchronously in the background.
|
SsoCredentialsProvider |
build()
Create a
SsoCredentialsProvider using the configuration applied to this builder. |
SsoCredentialsProvider.Builder |
prefetchTime(Duration prefetchTime)
Configure the amount of time, relative to SSO session token expiration, that the cached credentials are considered
close to stale and should be updated.
|
SsoCredentialsProvider.Builder |
refreshRequest(GetRoleCredentialsRequest getRoleCredentialsRequest)
Configure the
GetRoleCredentialsRequest that should be periodically sent to the SSO service to update the
credentials. |
SsoCredentialsProvider.Builder |
refreshRequest(Supplier<GetRoleCredentialsRequest> getRoleCredentialsRequestSupplier)
Similar to
SsoCredentialsProvider.Builder.refreshRequest(GetRoleCredentialsRequest), but takes a Supplier to supply the request to
SSO. |
SsoCredentialsProvider.Builder |
ssoClient(SsoClient ssoClient)
Configure the
SsoClient to use when calling SSO to update the session. |
SsoCredentialsProvider.Builder |
staleTime(Duration staleTime)
Configure the amount of time, relative to SSO session token expiration, that the cached credentials are considered
stale and should no longer be used.
|
public SsoCredentialsProvider.Builder ssoClient(SsoClient ssoClient)
SsoCredentialsProvider.BuilderSsoClient to use when calling SSO to update the session. This client should not be shut
down as long as this credentials provider is in use.ssoClient in interface SsoCredentialsProvider.Builderpublic SsoCredentialsProvider.Builder asyncCredentialUpdateEnabled(Boolean asyncCredentialUpdateEnabled)
SsoCredentialsProvider.BuilderBy default, this is disabled.
asyncCredentialUpdateEnabled in interface SsoCredentialsProvider.Builderpublic SsoCredentialsProvider.Builder staleTime(Duration staleTime)
SsoCredentialsProvider.BuilderBy default, this is 1 minute.
staleTime in interface SsoCredentialsProvider.Builderpublic SsoCredentialsProvider.Builder prefetchTime(Duration prefetchTime)
SsoCredentialsProvider.BuilderSsoCredentialsProvider.Builder.asyncCredentialUpdateEnabled(java.lang.Boolean).
By default, this is 5 minutes.
prefetchTime in interface SsoCredentialsProvider.Builderpublic SsoCredentialsProvider.Builder refreshRequest(GetRoleCredentialsRequest getRoleCredentialsRequest)
SsoCredentialsProvider.BuilderGetRoleCredentialsRequest that should be periodically sent to the SSO service to update the
credentials.refreshRequest in interface SsoCredentialsProvider.Builderpublic SsoCredentialsProvider.Builder refreshRequest(Supplier<GetRoleCredentialsRequest> getRoleCredentialsRequestSupplier)
SsoCredentialsProvider.BuilderSsoCredentialsProvider.Builder.refreshRequest(GetRoleCredentialsRequest), but takes a Supplier to supply the request to
SSO.refreshRequest in interface SsoCredentialsProvider.Builderpublic SsoCredentialsProvider build()
SsoCredentialsProvider.BuilderSsoCredentialsProvider using the configuration applied to this builder.build in interface SsoCredentialsProvider.BuilderCopyright © 2020. All rights reserved.