Binds licence signing and verification to the ISigner port.
The default implementation is this library's own JDK adapter, so a shipped artifact keeps verifying with no crypto dependency on the classpath. A host that already carries a crypto stack may install its own; both speak the same base64 PKCS#8/X.509 encodings and produce byte-identical signatures, so the two are interchangeable over the same key files.
verify is total by contract — a foreign signer that throws still yields
false here, because a verdict of "invalid" is the only safe reading of a
signature that could not be checked.
Binds licence signing and verification to the ISigner port. The default implementation is this library's own JDK adapter, so a shipped artifact keeps verifying with no crypto dependency on the classpath. A host that already carries a crypto stack may install its own; both speak the same base64 PKCS#8/X.509 encodings and produce byte-identical signatures, so the two are interchangeable over the same key files. `verify` is total by contract — a foreign signer that throws still yields false here, because a verdict of "invalid" is the only safe reading of a signature that could not be checked.
(active)The installed signer, or the JDK one this library ships with.
The installed signer, or the JDK one this library ships with.
The JDK-provider signer this library ships with.
The JDK-provider signer this library ships with.
(sign private-b64 payload)Base64 detached signature over PAYLOAD bytes, under base64 PKCS#8 PRIVATE-B64.
Base64 detached signature over PAYLOAD bytes, under base64 PKCS#8 PRIVATE-B64.
(verify public-b64 payload signature-b64)True when SIGNATURE-B64 is a valid signature over PAYLOAD bytes for base64 X.509 PUBLIC-B64. Never throws.
True when SIGNATURE-B64 is a valid signature over PAYLOAD bytes for base64 X.509 PUBLIC-B64. Never throws.
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 |