Class ExampleScenario11
java.lang.Object
co.ankatech.ankasecure.sdk.examples.ExampleScenario11
Scenario 11 – ML-DSA-87 Bulk Helpers (Compact JWS)
This scenario demonstrates the non-streaming helper methods for RFC 7515 Compact JWS using an ML-DSA-87 key:
- Generate an ML-DSA-87 key.
- Sign a plaintext document.
- Export the key’s public metadata.
- Verify the resulting JWS.
Implementation notes (Java 21+):
- All filesystem operations rely on the
Path
API. - UTF-8 encoding is explicitly specified for deterministic behaviour.
- Temporary directories are created via
ExampleUtil.ensureTempDir(Path)
.
Thread-safety: this class is stateless and immutable.
- Since:
- 2.1.0
- Author:
- ANKATech – Security Engineering
-
Method Summary
-
Method Details
-
main
-