Interface SsoOidcTokenProvider.Builder

    • Method Detail

      • 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.