Class SigningKeyRotationJob

java.lang.Object
com.irurueta.authserver.authorization.api.web.keys.SigningKeyRotationJob

@Component public class SigningKeyRotationJob extends Object
Periodically applies the key lifecycle. The schedule is the cron expression authserver.keys.rotation.cron (default: every hour); the use case itself only changes keys that are due.
  • Field Details

    • signingKeyRotator

      private final SigningKeyRotator signingKeyRotator
      Rotates the keys.
  • Constructor Details

    • SigningKeyRotationJob

      public SigningKeyRotationJob()
  • Method Details

    • run

      @Scheduled(cron="${authserver.keys.rotation.cron:0 0 * * * *}") public void run()
      Rotates the keys.