Class ExampleScenario12
java.lang.Object
co.ankatech.ankasecure.sdk.examples.ExampleScenario12
Scenario 12 – RSA-2048 → FALCON-1024 Streaming Re-sign (Detached JWS)
This scenario migrates a detached JWS signature from a classical RSA-2048 key to a post-quantum FALCON-1024 key, entirely on the server side and therefore without requiring the client to upload the payload again:
- Generate an RSA-2048 key and stream-sign a file.
- Generate a FALCON-1024 key.
- Re-sign the existing detached JWS on the server (RSA-2048 -> FALCON-1024).
- Stream-verify the fresh FALCON signature.
Implementation notes (Java 21+):
- The
Path
API is used for all filesystem operations. - UTF-8 encoding is specified explicitly for deterministic behaviour.
- The working directory is 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
-