Class PkiStoreRuntimeDependencies
java.lang.Object
zeroecho.pki.spi.store.PkiStoreRuntimeDependencies
Immutable process-local runtime dependencies supplied when opening a PKI store.
-
Constructor Summary
ConstructorsConstructorDescriptionPkiStoreRuntimeDependencies(Clock clock) Creates dependencies with one authoritative store clock. -
Method Summary
Modifier and TypeMethodDescriptionclock()Returns the exact authoritative clock supplied by the runtime owner.static PkiStoreRuntimeDependenciesReturns dependencies using the production system UTC clock.
-
Constructor Details
-
PkiStoreRuntimeDependencies
Creates dependencies with one authoritative store clock.- Parameters:
clock- authoritative non-null clock shared with the owning PKI session- Throws:
NullPointerException- ifclockisnull
-
-
Method Details
-
systemUtc
Returns dependencies using the production system UTC clock.- Returns:
- runtime dependencies backed by
Clock.systemUTC()
-
clock
Returns the exact authoritative clock supplied by the runtime owner.- Returns:
- authoritative store clock
-