File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
src/main/java/com/amazonaws/encryptionsdk Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public static class Builder extends AwsCryptoRequest.Builder<Builder> {
46
46
private byte [] ciphertext ;
47
47
48
48
/**
49
- * Sets the {@link ParsedCiphertext}. Either {@link ParsedCiphertext} or a
49
+ * Sets the {@link ParsedCiphertext} to decrypt . Either {@link ParsedCiphertext} or a
50
50
* {@code byte[]} ciphertext is required.
51
51
*
52
52
* @param parsedCiphertext The {@link ParsedCiphertext}
@@ -59,8 +59,10 @@ public Builder parsedCiphertext(ParsedCiphertext parsedCiphertext) {
59
59
}
60
60
61
61
/**
62
- * Sets the ciphertext. Either {@link ParsedCiphertext} or a
63
- * {@code byte[]} ciphertext is required.
62
+ * Sets the ciphertext byte array to decrypt. Either {@link ParsedCiphertext} or a
63
+ * {@code byte[]} ciphertext is required. Note that this does not make a defensive
64
+ * copy of the ciphertext and so any modifications made to the backing array will be
65
+ * reflected in this Builder.
64
66
*
65
67
* @param ciphertext The ciphertext
66
68
* @return The Builder, for method chaining
Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ public static class Builder extends AwsCryptoRequest.Builder<Builder> {
53
53
private Map <String , String > encryptionContext = Collections .emptyMap ();
54
54
55
55
/**
56
- * Sets the {@link Keyring}. Either a {@link CryptoMaterialsManager} or a
57
- * {@link Keyring} is required .
56
+ * Sets the plaintext byte array to encrypt. Note that this does not make a defensive copy of the
57
+ * plaintext and so any modifications made to the backing array will be reflected in this Builder .
58
58
*
59
59
* @param plaintext The {@link Keyring}
60
60
* @return The Builder, for method chaining
You can’t perform that action at this time.
0 commit comments