public static interface SsoCredentialsProvider.Builder
SsoCredentialsProvider.| 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
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.
|
SsoCredentialsProvider.Builder ssoClient(SsoClient ssoclient)
SsoClient 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.SsoCredentialsProvider.Builder asyncCredentialUpdateEnabled(Boolean asyncCredentialUpdateEnabled)
By default, this is disabled.
SsoCredentialsProvider.Builder staleTime(Duration staleTime)
By default, this is 1 minute.
SsoCredentialsProvider.Builder prefetchTime(Duration prefetchTime)
asyncCredentialUpdateEnabled(java.lang.Boolean).
By default, this is 5 minutes.
SsoCredentialsProvider.Builder refreshRequest(GetRoleCredentialsRequest getRoleCredentialsRequest)
GetRoleCredentialsRequest that should be periodically sent to the SSO service to update the
credentials.SsoCredentialsProvider.Builder refreshRequest(Supplier<GetRoleCredentialsRequest> getRoleCredentialsRequestSupplier)
refreshRequest(GetRoleCredentialsRequest), but takes a Supplier to supply the request to
SSO.SsoCredentialsProvider build()
SsoCredentialsProvider using the configuration applied to this builder.Copyright © 2020. All rights reserved.