Class SigningKeyBootstrapRunner

java.lang.Object
com.irurueta.authserver.authorization.api.web.keys.SigningKeyBootstrapRunner
All Implemented Interfaces:
org.springframework.boot.ApplicationRunner

@Component public class SigningKeyBootstrapRunner extends Object implements org.springframework.boot.ApplicationRunner
Creates the first active and next keys at startup, so the server can sign tokens before the first scheduled rotation.
  • Field Details

    • signingKeyRotator

      private final SigningKeyRotator signingKeyRotator
      Rotates the keys.
  • Constructor Details

    • SigningKeyBootstrapRunner

      public SigningKeyBootstrapRunner()
  • Method Details

    • run

      public void run(org.springframework.boot.ApplicationArguments args)
      Runs the rotation once.
      Specified by:
      run in interface org.springframework.boot.ApplicationRunner
      Parameters:
      args - the application arguments.