Class BootstrapConfigurationLoader

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

public final class BootstrapConfigurationLoader extends Object
Loads BootstrapConfiguration from system properties and environment variables.

Sources, in order of precedence

  1. System property (highest)
  2. Environment variable
  3. Caller-provided default (lowest)

Keys

Configuration keys
System propertyEnvironment variable
security.bootstrap.mode SECURITY_BOOTSTRAP_MODE
security.bootstrap.token.file SECURITY_BOOTSTRAP_TOKEN_FILE
security.bootstrap.token.ttl SECURITY_BOOTSTRAP_TOKEN_TTL

The TTL value is parsed as an ISO-8601 duration (e.g. PT15M, PT24H). If absent, the configuration default applies.

Invalid mode values fail fast with IllegalArgumentException; the caller decides whether to log + fall back or to abort startup.