Class ExampleScenario9
java.lang.Object
co.ankatech.ankasecure.sdk.examples.ExampleScenario9
Scenario 9 – RSA-2048 → ML-DSA-65 Bulk Re-sign (Compact JWS)
This scenario migrates a Compact JWS signature from a classical RSA-2048 key to a post-quantum ML-DSA-65 key without requiring the client to upload the payload again:
- Generate an RSA-2048 key and sign a file.
- Verify the RSA-based JWS.
- Generate an ML-DSA-65 key.
- Re-sign the payload on the server (RSA → ML-DSA).
- Verify the fresh ML-DSA JWS.
Implementation notes (Java 21+):
- Filesystem APIs use
Path
exclusively. - UTF-8 encoding is specified explicitly 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
-