Class InitialAdminBootstrapService

java.lang.Object
com.svenruppert.jsentinel.bootstrap.InitialAdminBootstrapService

public final class InitialAdminBootstrapService extends Object
Single-entry orchestrator that converts a CreateInitialAdminCommand into either a freshly created administrator or a non-leaking failure code.

The double-check + create + invalidate sequence runs inside a ReentrantLock, so two parallel setup requests cannot both create an administrator. The password array is wiped before the method returns regardless of outcome.