Package co.ankatech.ankasecure.sdk.examples
package co.ankatech.ankasecure.sdk.examples
-
ClassesClassDescriptionExampleMenu is the CLI entry point that provides an interactive menu of example scenarios.Scenario 1 ExampleScenario 10 – Bulk Encrypt/Decrypt with an
ML-KEM-1024
keyScenario 11 – Bulk Sign / Verify with anML-DSA-87
keyScenario 12 – Streaming Re-sign (RSA-2048 → FALCON-1024)Scenario 13 – Legacy RSA → PQC ML-KEM MigrationScenario 14 – Key Lifecycle (ML-KEM-768)Scenario 15 - Streamed Sign / Verify (ML-DSA-87)Scenario 16 - Utility-Stream Public-Key Encryption (ML-KEM-1024) Generate anML-KEM-1024
key (kid). Export the key metadata and extract the Base64 publicKey. Encrypt viaencryptFileUtilityStream
(public-key only). Decrypt withdecryptFileStream
(private key behind kid). Validate decrypted plaintext equals the original.Scenario 17 – Rapid-Revocation Lifecycle (non-streaming)Scenario 18 – Dynamic Key-Limit Upsize (Business-Centric)Scenario 19 – “Capability Discovery” smoke-testScenario 2 – Streamed Sign / Verify with RSA-2048Scenario 3 – Streaming Encrypt / Decrypt with AES-256Scenario 4 – Streamed Re-encryption (RSA-2048 → ML-KEM-1024)Scenario 5 - ML-KEM-512 Bulk Encrypt/Decrypt (Non-Streaming Helpers)Scenario 6 – ML-DSA-87 non-streaming sign / verify demo.Scenario 7 – AES-256 bulk encrypt / decrypt (Compact JWE).Scenario 8 – Bulk re-encryption EC-521 → ML-KEM-768 (Compact JWE).Scenario 9 – Bulk re-sign RSA-2048 ➜ ML-DSA-65 (Compact JWS).Example PQC Handshake Scenario:General helper utilities for example scenarios: Configuration loading Authentication JSON serialization (with Java Time support) Cryptographic helpers Error handling