Class ExampleScenario14
java.lang.Object
co.ankatech.ankasecure.sdk.examples.ExampleScenario14
Scenario 14 – ML-KEM-768 Key-Lifecycle Demonstration
This scenario illustrates a complete key-lifecycle for an ML-KEM-768 key via ANKASecure’s REST API:
- List all keys currently stored.
- Generate a new ML-KEM-768 key.
- Export its public metadata as JSON.
- Delete the key.
- Restore the key by re-importing the public-only JSON.
Implementation notes (Java 21+):
- All filesystem access is performed via the
Path
API. - UTF-8 encoding is specified explicitly.
- JSON (de)serialisation uses Gson
with a custom adapter for
ZonedDateTime
.
- Since:
- 2.1.0
- Author:
- ANKATech – Security Engineering
-
Method Summary
-
Method Details
-
main
Entry-point.
-