Class ExampleScenario14
java.lang.Object
co.ankatech.ankasecure.sdk.examples.ExampleScenario14
Scenario 14 — In-Memory Post-Quantum Crypto (Compact JWE/JWS).
This scenario performs an entirely file-less encryption → decryption and signing → verification cycle with post-quantum algorithms:
- Resolve a pre-provisioned HQC-128 key for encryption and decryption (the SDK is data-plane-only — it does not create keys).
- Resolve a pre-provisioned SLH-DSA-SHA2-128S key for signing and verification.
- Encrypt a UTF-8 message into a Compact JWE token and decrypt it back to bytes.
- Sign the same bytes, producing a Compact JWS token, and verify that signature.
All artefacts remain in memory; nothing touches the disk.
- Since:
- 3.0.0
- Author:
- ANKATech Solutions Inc.
- See Also:
-
Method Summary
-
Method Details
-
main
Runs the in-memory post-quantum crypto scenario.Loads CLI properties, authenticates against ANKASecure©, and delegates to the scenario logic. On any unrecoverable error the JVM terminates via
ExampleUtil.fatal(String, Throwable).- Parameters:
args- command-line arguments (ignored)
-