Class ExampleScenario18

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

public final class ExampleScenario18 extends Object

Scenario 18 – Dynamic Key-Limit Upsize

This scenario shows a full lifecycle where an AES-256 symmetric key is created with conservative “pilot” limits, then upsized in place via JSON Merge-Patch:

  1. Generate the key with softUsageLimit = 5, maxUsageLimit = 10, and an expiry ≈ 2 months.
  2. Export the baseline metadata.
  3. Patch the key to softUsageLimit = 50, maxUsageLimit = 100, and extend expiry to ≈ 18 months.
  4. Export the updated metadata and verify the changes.
Since:
2.1.0
Author:
ANKATech – Security Engineering
  • Method Details

    • main

      public static void main(String[] args)
      Entry-point.