Interface SsoOidcTokenProvider.Builder
- Enclosing class:
SsoOidcTokenProvider
public static interface SsoOidcTokenProvider.Builder
-
Method Summary
Modifier and TypeMethodDescriptionasyncTokenUpdateEnabled
(Boolean asyncTokenUpdateEnabled) Configure whether the provider should fetch tokens asynchronously in the background.build()
prefetchTime
(Duration prefetchTime) Configure the amount of time, relative to Sso-Oidc token , that the cached tokens in refresher are considered prefetched from service..sessionName
(String sessionName) The sessionName used to retrieve the SSO token.ssoOidcClient
(SsoOidcClient ssoOidcClient) Client to fetch token from SSO OIDC service.Configure the amount of time, relative to Sso-Oidc token , that the cached tokens in refresher are considered stale and should no longer be used.
-
Method Details
-
sessionName
The sessionName used to retrieve the SSO token. -
ssoOidcClient
Client to fetch token from SSO OIDC service. -
staleTime
Configure the amount of time, relative to Sso-Oidc token , that the cached tokens in refresher are considered stale and should no longer be used.By default, this is 5 minute.
-
prefetchTime
Configure the amount of time, relative to Sso-Oidc token , that the cached tokens in refresher are considered prefetched from service.. -
asyncTokenUpdateEnabled
Configure whether the provider should fetch tokens asynchronously in the background. If this is true, threads are less likely to block when token are loaded, but additional resources are used to maintain the provider.By default, this is disabled.
-
build
SsoOidcTokenProvider build()
-