Class ExampleScenario15
java.lang.Object
co.ankatech.ankasecure.sdk.examples.ExampleScenario15
Scenario 15 — Compact-Token Rotation (RSA-3072 → ML-KEM-768).
This example migrates a Compact JWE from a classical RSA-3072 key to a post-quantum ML-KEM-768 key entirely in memory. The original plaintext is never exposed to the client.
The SDK is data-plane-only: it does not create keys. This scenario operates
on the pre-provisioned granted cross-kid pair of the
demo-cli playground — source cli-reencrypt2-source
(RSA-3072) and target cli-reencrypt2-target (ML-KEM-768).
The cli-reference actor holds the cross-kid REENCRYPT grant on this pair
plus the atomic encrypt/decrypt grants on each endpoint.
Prerequisites
- A valid encrypted CLI initialisation file (credentials).
- An access-token with the scopes:
secure.encrypt,secure.reencrypt. - The
demo-cliplayground provisioned with thecli-reencrypt2-source/cli-reencrypt2-targetgrant.
- Since:
- 3.0.0
- Author:
- ANKATech Solutions Inc.
- See Also:
-
Method Summary
-
Method Details
-
main
Runs the compact-token rotation 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)
-