Skip to content

Commit 69e07f1

Browse files
author
Alexandr Pliushchou
committed
Add missing AES_GCM encryption references
DEVSIX-8766
1 parent ffa2d3c commit 69e07f1

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

kernel/src/main/java/com/itextpdf/kernel/pdf/EncryptionProperties.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ public class EncryptionProperties {
7272
* @param encryptionAlgorithm the type of encryption. It can be one of
7373
* {@link EncryptionConstants#STANDARD_ENCRYPTION_40},
7474
* {@link EncryptionConstants#STANDARD_ENCRYPTION_128},
75-
* {@link EncryptionConstants#ENCRYPTION_AES_128} or
76-
* {@link EncryptionConstants#ENCRYPTION_AES_256}.
75+
* {@link EncryptionConstants#ENCRYPTION_AES_128},
76+
* {@link EncryptionConstants#ENCRYPTION_AES_256}
77+
* or {@link EncryptionConstants#ENCRYPTION_AES_GCM}.
7778
* Optionally {@link EncryptionConstants#DO_NOT_ENCRYPT_METADATA} can be OEed
7879
* to output the metadata in cleartext.
7980
* {@link EncryptionConstants#EMBEDDED_FILES_ONLY} can be ORed as well.
@@ -112,8 +113,9 @@ public EncryptionProperties setStandardEncryption(byte[] userPassword, byte[] ow
112113
* @param encryptionAlgorithm the type of encryption. It can be one of
113114
* {@link EncryptionConstants#STANDARD_ENCRYPTION_40},
114115
* {@link EncryptionConstants#STANDARD_ENCRYPTION_128},
115-
* {@link EncryptionConstants#ENCRYPTION_AES_128} or
116-
* {@link EncryptionConstants#ENCRYPTION_AES_256}.
116+
* {@link EncryptionConstants#ENCRYPTION_AES_128},
117+
* {@link EncryptionConstants#ENCRYPTION_AES_256}
118+
* or {@link EncryptionConstants#ENCRYPTION_AES_GCM}.
117119
* Optionally {@link EncryptionConstants#DO_NOT_ENCRYPT_METADATA} can be OEed
118120
* to output the metadata in cleartext.
119121
* {@link EncryptionConstants#EMBEDDED_FILES_ONLY} can be ORed as well.
@@ -166,8 +168,9 @@ public EncryptionProperties setStandardEncryption(byte[] userPassword, byte[] ow
166168
* @param encryptionAlgorithm the type of encryption. It can be one of
167169
* {@link EncryptionConstants#STANDARD_ENCRYPTION_40},
168170
* {@link EncryptionConstants#STANDARD_ENCRYPTION_128},
169-
* {@link EncryptionConstants#ENCRYPTION_AES_128} or
170-
* {@link EncryptionConstants#ENCRYPTION_AES_256}.
171+
* {@link EncryptionConstants#ENCRYPTION_AES_128},
172+
* {@link EncryptionConstants#ENCRYPTION_AES_256}
173+
* or {@link EncryptionConstants#ENCRYPTION_AES_GCM}.
171174
* Optionally {@link EncryptionConstants#DO_NOT_ENCRYPT_METADATA}
172175
* can be ORed to output the metadata in cleartext.
173176
* {@link EncryptionConstants#EMBEDDED_FILES_ONLY} can be ORed as well.

kernel/src/main/java/com/itextpdf/kernel/pdf/WriterProperties.java

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,9 @@ public WriterProperties setFullCompressionMode(boolean fullCompressionMode) {
188188
* @param encryptionAlgorithm the type of encryption. It can be one of
189189
* {@link EncryptionConstants#STANDARD_ENCRYPTION_40},
190190
* {@link EncryptionConstants#STANDARD_ENCRYPTION_128},
191-
* {@link EncryptionConstants#ENCRYPTION_AES_128}
192-
* or {@link EncryptionConstants#ENCRYPTION_AES_256}.
191+
* {@link EncryptionConstants#ENCRYPTION_AES_128},
192+
* {@link EncryptionConstants#ENCRYPTION_AES_256}
193+
* or {@link EncryptionConstants#ENCRYPTION_AES_GCM}.
193194
* Optionally {@link EncryptionConstants#DO_NOT_ENCRYPT_METADATA} can be ORed
194195
* to output the metadata in cleartext.
195196
* {@link EncryptionConstants#EMBEDDED_FILES_ONLY} can be ORed as well.
@@ -229,8 +230,9 @@ public WriterProperties setStandardEncryption(byte[] userPassword, byte[] ownerP
229230
* @param encryptionAlgorithm the type of encryption. It can be one of
230231
* {@link EncryptionConstants#STANDARD_ENCRYPTION_40},
231232
* {@link EncryptionConstants#STANDARD_ENCRYPTION_128},
232-
* {@link EncryptionConstants#ENCRYPTION_AES_128}
233-
* or {@link EncryptionConstants#ENCRYPTION_AES_256}.
233+
* {@link EncryptionConstants#ENCRYPTION_AES_128},
234+
* {@link EncryptionConstants#ENCRYPTION_AES_256}
235+
* or {@link EncryptionConstants#ENCRYPTION_AES_GCM}.
234236
* Optionally {@link EncryptionConstants#DO_NOT_ENCRYPT_METADATA} can be ORed
235237
* to output the metadata in cleartext.
236238
* {@link EncryptionConstants#EMBEDDED_FILES_ONLY} can be ORed as well.
@@ -271,8 +273,9 @@ public WriterProperties setStandardEncryption(byte[] userPassword, byte[] ownerP
271273
* @param encryptionAlgorithm the type of encryption. It can be one of
272274
* {@link EncryptionConstants#STANDARD_ENCRYPTION_40},
273275
* {@link EncryptionConstants#STANDARD_ENCRYPTION_128},
274-
* {@link EncryptionConstants#ENCRYPTION_AES_128}
275-
* or {@link EncryptionConstants#ENCRYPTION_AES_256}.
276+
* {@link EncryptionConstants#ENCRYPTION_AES_128},
277+
* {@link EncryptionConstants#ENCRYPTION_AES_256}
278+
* or {@link EncryptionConstants#ENCRYPTION_AES_GCM}.
276279
* Optionally {@link EncryptionConstants#DO_NOT_ENCRYPT_METADATA} can be ORed
277280
* to output the metadata in cleartext.
278281
* {@link EncryptionConstants#EMBEDDED_FILES_ONLY} can be ORed as well.
@@ -309,8 +312,9 @@ public WriterProperties setPublicKeyEncryption(Certificate[] certs, int[] permis
309312
* @param encryptionAlgorithm the type of encryption. It can be one of
310313
* {@link EncryptionConstants#STANDARD_ENCRYPTION_40},
311314
* {@link EncryptionConstants#STANDARD_ENCRYPTION_128},
312-
* {@link EncryptionConstants#ENCRYPTION_AES_128}
313-
* or {@link EncryptionConstants#ENCRYPTION_AES_256}.
315+
* {@link EncryptionConstants#ENCRYPTION_AES_128},
316+
* {@link EncryptionConstants#ENCRYPTION_AES_256}
317+
* or {@link EncryptionConstants#ENCRYPTION_AES_GCM}.
314318
* Optionally {@link EncryptionConstants#DO_NOT_ENCRYPT_METADATA} can be ORed
315319
* to output the metadata in cleartext.
316320
* {@link EncryptionConstants#EMBEDDED_FILES_ONLY} can be ORed as well.

0 commit comments

Comments
 (0)