Interface JwksClientConfiguration

All Known Implementing Classes:
JwksClientConfigurationProperties

public interface JwksClientConfiguration
Configuration for the retrieval of remote JSON Web Key Sets.
Since:
5.5.2
Author:
Sergio del Amo
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull Duration
    How long a remote JWK Set is not requested again after a retrieval failed or returned no keys.
    @NonNull Duration
    How long a remote JWK Set retrieval may take before it is given up and treated as a failure.
  • Method Details

    • getFailureBackoff

      @NonNull Duration getFailureBackoff()
      How long a remote JWK Set is not requested again after a retrieval failed or returned no keys. A zero or negative duration disables the back-off.
      Returns:
      The failure back-off duration.
    • getRetrievalTimeout

      @NonNull Duration getRetrievalTimeout()
      How long a remote JWK Set retrieval may take before it is given up and treated as a failure. It bounds the retrieval shared by concurrent callers even when the underlying JwksClient has no timeout of its own. A zero or negative duration disables the timeout.
      Returns:
      The retrieval timeout.