Class ExampleMenu

java.lang.Object
co.ankatech.ankasecure.sdk.examples.ExampleMenu

public final class ExampleMenu extends Object

Console entry-point that lets you run any of the sample scenarios packaged with the AnkaSecure SDK.

How it works

  1. The menu prints a numbered list of scenarios.
  2. The user types a number  ->  the program invokes the corresponding main method.
  3. Press Enter to return to the menu or enter 0 to exit.

Available scenarios

  1  Asymmetric Encrypt/Decrypt (Streaming)
  2  Sign/Verify (Streaming)
  3  Symmetric Encrypt/Decrypt (Streaming)
  4  Asymmetric Re-encrypt (Streaming)
  5  ML-KEM-512 Encrypt/Decrypt (Non-Streaming)
  6  ML-DSA-87 Sign/Verify (Non-Streaming)
  7  AES-256 Encrypt/Decrypt (Non-Streaming)
  8  P-521 -> ML-KEM-768 Re-encrypt (Non-Streaming)
  9  RSA-2048 -> ML-DSA-65 Re-sign (Non-Streaming)
 10  Asymmetric Public-Key Utility
 11  ML-DSA-87 Sign and Verify (Utility)
 12  Re-sign Stream (RSA-2048 -> FALCON-1024)
 13  Supported-Algorithm Discovery
 14  In-memory JWE/JWS Quick-start
 15  Compact-token Rotation (Re-encrypt)
 16  Detached-JWS Stream Verification
 17  Sign-Then-Encrypt Nested Operations (Compact)
 18  Composite Hybrid Keys (COMPOSITE_KEM_COMBINE + COMPOSITE_SIGNATURE)
 19  PKCS#7/CMS Structural Analysis
 20  PKCS#7 -> JOSE Conversion / Migration
 21  Sign-Then-Encrypt Nested Operations (Streaming)
 22  Run All Examples (Complete Suite with Summary)
 
  • Method Details

    • main

      public static void main(String[] args)