Class ExampleScenario13

Object
ExampleScenario13

public class ExampleScenario13 extends Object
Scenario 13 Example:
  1. Create a temporary PKCS#12 file containing an RSA keypair + self-signed cert.
  2. Import that .p12 into the encryption service as a new kid.
  3. Sign a file (streaming) using that kid.
  4. Export the key data from that kid (the entire JSON, which includes public key information).
  5. Encrypt using that kid (non-streaming).
  6. Decrypt using that same kid (private key) in the encryption service.

This scenario demonstrates how to handle a PKCS#12 file and import it into the service using the updated AnkaSecureSdk methods.

  • Constructor Details Link icon

    • ExampleScenario13 Link icon

      public ExampleScenario13()
  • Method Details Link icon

    • main Link icon

      public static void main(String[] args)