with

infix fun with(scheme: TamperEvidenceScheme): SagaBuilder<C, R>

Enables the given scheme on the builder's journal.

Ordering invariant: protect with tamperEvidence must be called after keep audit in <journal> as <T>. If no journal is registered when this is called, an IllegalStateException is thrown with a message that points the user at keep audit.

Return

The SagaBuilder for continued fluent configuration.

Parameters

scheme

The tamper-evidence scheme to enable. Use tamperEvidence for SHA-256.

Throws

if no journal has been registered via keep audit.