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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrun(org.springframework.boot.ApplicationArguments args) Runs the rotation once.
-
Field Details
-
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:
runin interfaceorg.springframework.boot.ApplicationRunner- Parameters:
args- the application arguments.
-