Class BootstrapStartup
java.lang.Object
com.svenruppert.jsentinel.bootstrap.BootstrapStartup
One-shot startup orchestrator. Call this once during server boot.
If bootstrap is required and no token is currently stored, generates a
fresh token, persists it, and emits the operator-facing setup banner via
the configured BootstrapTokenOutput. If a token already exists
(persistent mode after restart), it is reused so the user can resume the
setup.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidinitializeIfRequired(BootstrapStateService stateService, BootstrapTokenStore tokenStore, BootstrapTokenGenerator generator, BootstrapTokenOutput output, BootstrapConfiguration configuration)
-
Method Details
-
initializeIfRequired
public static void initializeIfRequired(BootstrapStateService stateService, BootstrapTokenStore tokenStore, BootstrapTokenGenerator generator, BootstrapTokenOutput output, BootstrapConfiguration configuration)
-