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, fully server-side—no payload re-upload:
- 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 new FALCON signature.
Implementation notes (Java 21+):
- All filesystem work relies on
Path
. - UTF-8 encoding is enforced explicitly for deterministic behaviour.
- Temporary artefacts reside under temp_files/.
Thread-safety: the class is stateless and immutable.
- Since:
- 2.1.0
- Author:
- ANKATech – Security Engineering
-
Method Summary
-
Method Details
-
main
Entry-point.
-