Class ExampleScenario6
java.lang.Object
co.ankatech.ankasecure.sdk.examples.ExampleScenario6
Scenario 6 – ML-DSA-87 Bulk Helpers (Compact JWS)
This scenario signs and verifies a document with non-streaming helpers that operate on RFC 7515 Compact JWS tokens:
- Generate an
ML-DSA-87
key. - Export its metadata.
- Create a Compact JWS on disk via
AnkaSecureSdk.signFile(String, Path, Path)
. - Verify it via
AnkaSecureSdk.verifySignature(Path)
. - Print server metadata and validate integrity.
Implementation notes (Java 21+):
- Filesystem interactions rely on the
Path
API. - UTF-8 is enforced explicitly for deterministic encoding.
- Temporary artefacts reside under temp_files/.
Thread-safety: this class is stateless and immutable.
- Since:
- 2.1.0
- Author:
- ANKATech – Security Engineering
-
Method Summary
-
Method Details
-
main
Entry-point.
-