Class BootstrapStateService

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

public final class BootstrapStateService extends Object
Single source of truth for "is the system uninitialized?".

The system is considered initialized as soon as at least one administrator account exists; the mere presence of non-admin users is not enough.

  • Constructor Details

  • Method Details

    • bootstrapRequired

      public boolean bootstrapRequired()
    • hasAdministrator

      public boolean hasAdministrator()
      Returns:
      true when at least one administrator account exists. Independent of the configured BootstrapMode.
    • mode

      public BootstrapMode mode()