Facade: issue a licence, verify one offline.
Verification performs no IO. The caller supplies the clock and the host identity, so the same inputs always yield the same verdict.
Facade: issue a licence, verify one offline. Verification performs no IO. The caller supplies the clock and the host identity, so the same inputs always yield the same verdict.
(issue private-b64 license)Sign license with PKCS#8 private-b64, returning a SignedLicense.
Server-side only — no shipped artifact carries a private key.
Sign `license` with PKCS#8 `private-b64`, returning a SignedLicense. Server-side only — no shipped artifact carries a private key.
(request {:keys [signed now node-id unit]})Assemble the VerifyRequest a verdict is computed from. Pure.
public-key is resolved from the keyring by the licence's own key-id, so
rotation is a registry entry rather than a call-site change.
Assemble the VerifyRequest a verdict is computed from. Pure. `public-key` is resolved from the keyring by the licence's own key-id, so rotation is a registry entry rather than a call-site change.
(valid? opts)True when opts yields a valid verdict.
True when `opts` yields a valid verdict.
(verify opts)Verdict for signed at now, on host node-id, for entitlement unit.
Returns {:license/valid? true :license/license L} or {:license/valid? false :license/reason DenyReason}.
Verdict for `signed` at `now`, on host `node-id`, for entitlement `unit`.
Returns {:license/valid? true :license/license L} or
{:license/valid? false :license/reason DenyReason}.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |