Class RequestSignerCacheConfiguration

    • Field Detail

      • DEFAULT_KEY_ID_TTL

        public static final Duration DEFAULT_KEY_ID_TTL
        Defaulting to 1 minute will prevent frequent calls under heavy traffic and avoid long propagation in case of key rotation
      • DEFAULT_PRIVATE_KEY_ID_TTL

        public static final Duration DEFAULT_PRIVATE_KEY_ID_TTL
    • Method Detail

      • isKeyIdCachingEnabled

        public boolean isKeyIdCachingEnabled()
        Indicates whether the key identifier value should be cached.
        Returns:
        true if key identifiers may be cached, otherwise false.
      • isPrivateKeyCachingEnabled

        public boolean isPrivateKeyCachingEnabled()
        Indicates whether the parsed private key should be cached.
        Returns:
        true if private keys may be cached, otherwise false.
      • getKeyIdTimeToLive

        public Optional<Duration> getKeyIdTimeToLive()
        Returns the optional time-to-live for cached key identifiers.
        Returns:
        The optional time-to-live duration.
      • getPrivateKeyTimeToLive

        public Optional<Duration> getPrivateKeyTimeToLive()
        Returns the optional time-to-live for cached private keys.
        Returns:
        The optional time-to-live duration.
      • builder

        public static RequestSignerCacheConfiguration.Builder builder()
        Creates a new builder with caching disabled.

        Enable individual caches (and optionally TTLs) using the builder’s configuration methods.

        Returns:
        A new builder instance.