Interface JwtValidateKeyCollector


public interface JwtValidateKeyCollector
Collects JwtValidateKey instances for JWT validation.
Author:
Daniel Sagenschneider
  • Method Details

    • getCurrentKeys

      JwtValidateKey[] getCurrentKeys()
      Obtains the current JwtValidateKey instances.
      Returns:
      Current JwtValidateKey instances.
    • setKeys

      void setKeys(JwtValidateKey... keys)
      Specifies the JwtValidateKey instances.
      Parameters:
      keys - JwtValidateKey instances.
    • setFailure

      void setFailure(Throwable cause, long timeToNextCheck, TimeUnit unit)
      Indicates failure in retrieving the JwtValidateKey instances.
      Parameters:
      cause - Cause of the failure.
      timeToNextCheck - Allows overriding the default poll refresh interval. This typically allows retrying earlier than the default refresh period.
      unit - TimeUnit for the next time to check.