Interface BootstrapStateStore
- All Known Implementing Classes:
InMemoryBootstrapStateStore
Persistent store for
BootstrapState per tenant.
Used by the first-run admin bootstrap flow to record exactly once
when an administrator was first created in a tenant. Where the
existing BootstrapTokenStore owns the short-lived
bootstrap token (a credential), this store owns the
long-lived bootstrap state (a fact).
Implementations must be thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanRemoves the recorded state fortenant.Returns the recorded bootstrap state fortenant.voidsave(BootstrapState state) Persists or replaces the bootstrap state.
-
Method Details
-
find
Returns the recorded bootstrap state fortenant.- Parameters:
tenant- tenant scope; must not benull- Returns:
- state, if recorded
-
save
Persists or replaces the bootstrap state. Keyed onBootstrapState.tenant().- Parameters:
state- state to save; must not benull
-
delete
Removes the recorded state fortenant.- Parameters:
tenant- tenant scope; must not benull- Returns:
trueif state was removed,falsewhen none existed
-