Interface SsoOidcTokenProvider.Builder

Enclosing class:
SsoOidcTokenProvider

public static interface SsoOidcTokenProvider.Builder
  • Method Details

    • 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