@@ -283,10 +283,9 @@ 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
- * 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.
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} and base64-encode the input to
288
+ * {@code decryptString}. These deprecated APIs will be removed in the future.
290
289
*/
291
290
@ Deprecated
292
291
public <K extends MasterKey <K >> CryptoResult <String , K > encryptString (
@@ -304,10 +303,9 @@ public <K extends MasterKey<K>> CryptoResult<String, K> encryptString(
304
303
* {@code plaintext} and base64 encodes the result.
305
304
* @deprecated Use the {@link #encryptData(CryptoMaterialsManager, byte[], Map)} and
306
305
* {@link #decryptData(CryptoMaterialsManager, byte[])} APIs instead. {@code encryptString} and {@code decryptString}
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.
306
+ * work as expected if you use them together. However, to work with other language implementations of the AWS
307
+ * Encryption SDK, you need to base64-decode the output of {@code encryptString} and base64-encode the input to
308
+ * {@code decryptString}. These deprecated APIs will be removed in the future.
311
309
*/
312
310
@ Deprecated
313
311
public CryptoResult <String , ?> encryptString (
@@ -329,10 +327,9 @@ public <K extends MasterKey<K>> CryptoResult<String, K> encryptString(
329
327
* an empty {@code encryptionContext}.
330
328
* @deprecated Use the {@link #encryptData(MasterKeyProvider, byte[])} and
331
329
* {@link #decryptData(MasterKeyProvider, byte[])} APIs instead. {@code encryptString} and {@code decryptString}
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
+ * work as expected if you use them together. However, to work with other language implementations of the AWS
331
+ * Encryption SDK, you need to base64-decode the output of {@code encryptString} and base64-encode the input to
332
+ * {@code decryptString}. These deprecated APIs will be removed in the future.
336
333
*/
337
334
@ Deprecated
338
335
public <K extends MasterKey <K >> CryptoResult <String , K > encryptString (final MasterKeyProvider <K > provider ,
@@ -345,10 +342,9 @@ public <K extends MasterKey<K>> CryptoResult<String, K> encryptString(final Mast
345
342
* an empty {@code encryptionContext}.
346
343
* @deprecated Use the {@link #encryptData(CryptoMaterialsManager, byte[])} and
347
344
* {@link #decryptData(CryptoMaterialsManager, byte[])} APIs instead. {@code encryptString} and {@code decryptString}
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.
345
+ * work as expected if you use them together. However, to work with other language implementations of the AWS
346
+ * Encryption SDK, you need to base64-decode the output of {@code encryptString} and base64-encode the input to
347
+ * {@code decryptString}. These deprecated APIs will be removed in the future.
352
348
*/
353
349
@ Deprecated
354
350
public CryptoResult <String , ?> encryptString (
@@ -432,10 +428,9 @@ public <K extends MasterKey<K>> CryptoResult<byte[], K> decryptData(
432
428
* @see #decryptData(MasterKeyProvider, byte[])
433
429
* @deprecated Use the {@link #decryptData(MasterKeyProvider, byte[])} and
434
430
* {@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.
431
+ * work as expected if you use them together. However, to work with other language implementations of the AWS
432
+ * Encryption SDK, you need to base64 decode the output of {@code encryptString} and base64-encode the input to
433
+ * {@code decryptString}. These deprecated APIs will be removed in the future.
439
434
*/
440
435
@ Deprecated
441
436
@ SuppressWarnings ("unchecked" )
@@ -453,10 +448,9 @@ public <K extends MasterKey<K>> CryptoResult<String, K> decryptString(
453
448
* @see #decryptData(CryptoMaterialsManager, byte[])
454
449
* @deprecated Use the {@link #decryptData(CryptoMaterialsManager, byte[])} and
455
450
* {@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.
451
+ * work as expected if you use them together. However, to work with other language implementations of the AWS
452
+ * Encryption SDK, you need to base64-decode the output of {@code encryptString} and base64-encode the input to
453
+ * {@code decryptString}. These deprecated APIs will be removed in the future.
460
454
*/
461
455
@ Deprecated
462
456
public CryptoResult <String , ?> decryptString (final CryptoMaterialsManager provider ,
0 commit comments