@@ -283,8 +283,10 @@ public <K extends MasterKey<K>> CryptoResult<byte[], K> encryptData(final Master
283
283
* {@code plaintext} and base64 encodes the result.
284
284
* @deprecated Use the {@link #encryptData(MasterKeyProvider, byte[], Map)} and
285
285
* {@link #decryptData(MasterKeyProvider, byte[])} APIs instead. {@code encryptString} and {@code decryptString}
286
- * require an extra Base64 decode/encode step to interoperate with other AWS Encryption SDK implementations. Data
287
- * encoding is an application-specific choice. These deprecated APIs will be removed in the future.
286
+ * work as expected if you use them together. However, to work with other language implementations of the AWS
287
+ * Encryption SDK, you need to base64 decode the output of {@code encryptString}.
288
+ * {@code decryptString} will base64 decode plaintext before returning the result.
289
+ * These deprecated APIs will be removed in the future.
288
290
*/
289
291
@ Deprecated
290
292
public <K extends MasterKey <K >> CryptoResult <String , K > encryptString (
@@ -302,8 +304,10 @@ public <K extends MasterKey<K>> CryptoResult<String, K> encryptString(
302
304
* {@code plaintext} and base64 encodes the result.
303
305
* @deprecated Use the {@link #encryptData(CryptoMaterialsManager, byte[], Map)} and
304
306
* {@link #decryptData(CryptoMaterialsManager, byte[])} APIs instead. {@code encryptString} and {@code decryptString}
305
- * require an extra Base64 decode/encode step to interoperate with other AWS Encryption SDK implementations. Data
306
- * encoding is an application-specific choice. These deprecated APIs will be removed in the future.
307
+ * work as expected if you use them together. However, to work with other language implementations of the AWS
308
+ * Encryption SDK, you need to base64 decode the output of {@code encryptString}.
309
+ * {@code decryptString} will base64 decode plaintext before returning the result.
310
+ * These deprecated APIs will be removed in the future.
307
311
*/
308
312
@ Deprecated
309
313
public CryptoResult <String , ?> encryptString (
@@ -325,8 +329,10 @@ public <K extends MasterKey<K>> CryptoResult<String, K> encryptString(
325
329
* an empty {@code encryptionContext}.
326
330
* @deprecated Use the {@link #encryptData(MasterKeyProvider, byte[])} and
327
331
* {@link #decryptData(MasterKeyProvider, byte[])} APIs instead. {@code encryptString} and {@code decryptString}
328
- * require an extra Base64 decode/encode step to interoperate with other AWS Encryption SDK implementations. Data
329
- * encoding is an application-specific choice. These deprecated APIs will be removed in the future.
332
+ * work as expected if you use them together. However, to work with other language implementations of the AWS
333
+ * Encryption SDK, you need to base64 decode the output of {@code encryptString}.
334
+ * {@code decryptString} will base64 decode plaintext before returning the result.
335
+ * These deprecated APIs will be removed in the future.
330
336
*/
331
337
@ Deprecated
332
338
public <K extends MasterKey <K >> CryptoResult <String , K > encryptString (final MasterKeyProvider <K > provider ,
@@ -339,8 +345,10 @@ public <K extends MasterKey<K>> CryptoResult<String, K> encryptString(final Mast
339
345
* an empty {@code encryptionContext}.
340
346
* @deprecated Use the {@link #encryptData(CryptoMaterialsManager, byte[])} and
341
347
* {@link #decryptData(CryptoMaterialsManager, byte[])} APIs instead. {@code encryptString} and {@code decryptString}
342
- * require an extra Base64 decode/encode step to interoperate with other AWS Encryption SDK implementations. Data
343
- * encoding is an application-specific choice. These deprecated APIs will be removed in the future.
348
+ * work as expected if you use them together. However, to work with other language implementations of the AWS
349
+ * Encryption SDK, you need to base64 decode the output of {@code encryptString}.
350
+ * {@code decryptString} will base64 decode plaintext before returning the result.
351
+ * These deprecated APIs will be removed in the future.
344
352
*/
345
353
@ Deprecated
346
354
public CryptoResult <String , ?> encryptString (
@@ -423,10 +431,11 @@ public <K extends MasterKey<K>> CryptoResult<byte[], K> decryptData(
423
431
*
424
432
* @see #decryptData(MasterKeyProvider, byte[])
425
433
* @deprecated Use the {@link #decryptData(MasterKeyProvider, byte[])} and
426
- * {@link #encryptData(MasterKeyProvider, byte[], Map)} APIs instead. {@code encryptString} and
427
- * {@code decryptString} require an extra Base64 decode/encode step to interoperate with other AWS Encryption SDK
428
- * implementations. Data encoding is an application-specific choice. These deprecated APIs will be removed in the
429
- * future.
434
+ * {@link #encryptData(MasterKeyProvider, byte[], Map)} APIs instead. {@code encryptString} and {@code decryptString}
435
+ * work as expected if you use them together. However, to work with other language implementations of the AWS
436
+ * Encryption SDK, you need to base64 decode the output of {@code encryptString}.
437
+ * {@code decryptString} will base64 decode plaintext before returning the result.
438
+ * These deprecated APIs will be removed in the future.
430
439
*/
431
440
@ Deprecated
432
441
@ SuppressWarnings ("unchecked" )
@@ -443,10 +452,11 @@ public <K extends MasterKey<K>> CryptoResult<String, K> decryptString(
443
452
*
444
453
* @see #decryptData(CryptoMaterialsManager, byte[])
445
454
* @deprecated Use the {@link #decryptData(CryptoMaterialsManager, byte[])} and
446
- * {@link #encryptData(CryptoMaterialsManager, byte[], Map)} APIs instead. {@code encryptString} and
447
- * {@code decryptString} require an extra Base64 decode/encode step to interoperate with other AWS Encryption SDK
448
- * implementations. Data encoding is an application-specific choice. These deprecated APIs will be removed in the
449
- * future.
455
+ * {@link #encryptData(CryptoMaterialsManager, byte[], Map)} APIs instead. {@code encryptString} and {@code decryptString}
456
+ * work as expected if you use them together. However, to work with other language implementations of the AWS
457
+ * Encryption SDK, you need to base64 decode the output of {@code encryptString}.
458
+ * {@code decryptString} will base64 decode plaintext before returning the result.
459
+ * These deprecated APIs will be removed in the future.
450
460
*/
451
461
@ Deprecated
452
462
public CryptoResult <String , ?> decryptString (final CryptoMaterialsManager provider ,
0 commit comments