Interface SsoOidcTokenProvider.Builder
-
- Enclosing class:
- SsoOidcTokenProvider
public static interface SsoOidcTokenProvider.Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SsoOidcTokenProvider.BuilderasyncTokenUpdateEnabled(Boolean asyncTokenUpdateEnabled)Configure whether the provider should fetch tokens asynchronously in the background.SsoOidcTokenProviderbuild()SsoOidcTokenProvider.BuilderprefetchTime(Duration prefetchTime)Configure the amount of time, relative to Sso-Oidc token , that the cached tokens in refresher are considered prefetched from service..SsoOidcTokenProvider.BuildersessionName(String sessionName)The sessionName used to retrieve the SSO token.SsoOidcTokenProvider.BuilderssoOidcClient(SsoOidcClient ssoOidcClient)Client to fetch token from SSO OIDC service.SsoOidcTokenProvider.BuilderstaleTime(Duration onDiskStaleDuration)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 Detail
-
sessionName
SsoOidcTokenProvider.Builder sessionName(String sessionName)
The sessionName used to retrieve the SSO token.
-
ssoOidcClient
SsoOidcTokenProvider.Builder ssoOidcClient(SsoOidcClient ssoOidcClient)
Client to fetch token from SSO OIDC service.
-
staleTime
SsoOidcTokenProvider.Builder staleTime(Duration onDiskStaleDuration)
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
SsoOidcTokenProvider.Builder prefetchTime(Duration prefetchTime)
Configure the amount of time, relative to Sso-Oidc token , that the cached tokens in refresher are considered prefetched from service..
-
asyncTokenUpdateEnabled
SsoOidcTokenProvider.Builder asyncTokenUpdateEnabled(Boolean 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()
-
-