Skip to content

Commit 30c51a9

Browse files
Making decryptData with ParsedCiphertext public
1 parent 0a3e6e3 commit 30c51a9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/com/amazonaws/encryptionsdk/AwsCrypto.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ public <K extends MasterKey<K>> CryptoResult<byte[], K> decryptData(final Master
476476
* @see #decryptData(MasterKeyProvider, byte[])
477477
*
478478
* @deprecated {@link MasterKeyProvider}s have been deprecated in favor of {@link Keyring}s.
479-
* Replaced by {@link #decryptData(AwsCryptoConfig, byte[])}
479+
* Replaced by {@link #decryptData(AwsCryptoConfig, ParsedCiphertext)}
480480
*/
481481
@SuppressWarnings("unchecked")
482482
@Deprecated
@@ -489,7 +489,7 @@ public <K extends MasterKey<K>> CryptoResult<byte[], K> decryptData(
489489
/**
490490
* @see #decryptData(CryptoMaterialsManager, byte[])
491491
*
492-
* @deprecated Replaced by {@link #decryptData(AwsCryptoConfig, byte[])}
492+
* @deprecated Replaced by {@link #decryptData(AwsCryptoConfig, ParsedCiphertext)}
493493
*/
494494
@Deprecated
495495
public CryptoResult<byte[], ?> decryptData(
@@ -516,14 +516,14 @@ public AwsCryptoResult<byte[]> decryptData(
516516
}
517517

518518
/**
519-
* Decrypts the provided ciphertext using the {@link CryptoMaterialsManager} or the {@link Keyring}
519+
* Decrypts the provided {@link ParsedCiphertext} using the {@link CryptoMaterialsManager} or the {@link Keyring}
520520
* specified in the {@link AwsCryptoConfig}.
521521
*
522522
* @param config The AwsCryptoConfig containing either a {@link CryptoMaterialsManager} or a {@link Keyring}
523-
* @param ciphertext The ciphertext to decrypt
523+
* @param ciphertext The {@link ParsedCiphertext} to decrypt
524524
* @return An {@link AwsCryptoResult} containing the decrypted data
525525
*/
526-
private AwsCryptoResult<byte[]> decryptData(
526+
public AwsCryptoResult<byte[]> decryptData(
527527
final AwsCryptoConfig config,
528528
final ParsedCiphertext ciphertext
529529
) {

0 commit comments

Comments
 (0)