Interface SignatureProvider

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SignatureProvider
Sign / wrap an audit JSON document for tamper-evident persistence. Default identity — returns the JSON unchanged. Callers can plug in implementations such as HMAC or Ed25519 signing.

Per CONTRIBUTING.md "Engineering principles" §2 — when this is invoked, callers know the sealed JSON they get back is what hits long-term storage.

Since:
0.1.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final SignatureProvider
    Identity — returns the JSON unchanged.
  • Method Summary

    Modifier and Type
    Method
    Description
    sign(String auditJson)
    Sign or wrap auditJson and return the result.
  • Field Details

    • IDENTITY

      static final SignatureProvider IDENTITY
      Identity — returns the JSON unchanged.
  • Method Details

    • sign

      String sign(String auditJson)
      Sign or wrap auditJson and return the result. Implementations must be pure (same input → same output) and must NOT throw on any non-null input.