exercises/java/encryption-context-start/src/main/java/sfw/example/esdkworkshop/Api.java [211:219]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public PointerItem store(byte[] data, Map<String, String> context) {
    // ENCRYPTION-CONTEXT-START: Set Encryption Context on Encrypt
    CryptoResult<byte[], KmsMasterKey> encryptedMessage = awsEncryptionSdk.encryptData(mkp, data);
    DocumentBundle bundle =
        DocumentBundle.fromDataAndContext(encryptedMessage.getResult(), context);
    writeItem(bundle.getPointer());
    writeObject(bundle);
    return bundle.getPointer();
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



exercises/java/multi-cmk-start/src/main/java/sfw/example/esdkworkshop/Api.java [211:218]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public PointerItem store(byte[] data, Map<String, String> context) {
    CryptoResult<byte[], KmsMasterKey> encryptedMessage = awsEncryptionSdk.encryptData(mkp, data);
    DocumentBundle bundle =
        DocumentBundle.fromDataAndContext(encryptedMessage.getResult(), context);
    writeItem(bundle.getPointer());
    writeObject(bundle);
    return bundle.getPointer();
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



exercises/java/multi-cmk-complete/src/main/java/sfw/example/esdkworkshop/Api.java [211:218]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public PointerItem store(byte[] data, Map<String, String> context) {
    CryptoResult<byte[], KmsMasterKey> encryptedMessage = awsEncryptionSdk.encryptData(mkp, data);
    DocumentBundle bundle =
        DocumentBundle.fromDataAndContext(encryptedMessage.getResult(), context);
    writeItem(bundle.getPointer());
    writeObject(bundle);
    return bundle.getPointer();
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



exercises/java/add-esdk-complete/src/main/java/sfw/example/esdkworkshop/Api.java [217:225]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public PointerItem store(byte[] data, Map<String, String> context) {
    // ADD-ESDK-COMPLETE: Add Encryption to store
    CryptoResult<byte[], KmsMasterKey> encryptedMessage = awsEncryptionSdk.encryptData(mkp, data);
    DocumentBundle bundle =
        DocumentBundle.fromDataAndContext(encryptedMessage.getResult(), context);
    writeItem(bundle.getPointer());
    writeObject(bundle);
    return bundle.getPointer();
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



