@@ -233,7 +233,7 @@ public enum CryptoStandard {
233
233
* @param reader PdfReader that reads the PDF file
234
234
* @param outputStream OutputStream to write the signed PDF file
235
235
* @param append boolean to indicate whether the signing should happen in append mode or not
236
- * @throws IOException
236
+ * @throws IOException if some I/O problem occurs
237
237
* @deprecated will be removed in next major release.
238
238
* Use {@link #PdfSigner(PdfReader, OutputStream, StampingProperties)} instead.
239
239
*/
@@ -249,7 +249,7 @@ public PdfSigner(PdfReader reader, OutputStream outputStream, boolean append) th
249
249
* @param outputStream OutputStream to write the signed PDF file
250
250
* @param path File to which the output is temporarily written
251
251
* @param append boolean to indicate whether the signing should happen in append mode or not
252
- * @throws IOException
252
+ * @throws IOException if some I/O problem occurs
253
253
* @deprecated will be removed in next major release.
254
254
* Use {@link #PdfSigner(PdfReader, OutputStream, String, StampingProperties)} instead.
255
255
*/
@@ -265,7 +265,7 @@ public PdfSigner(PdfReader reader, OutputStream outputStream, String path, boole
265
265
* @param outputStream OutputStream to write the signed PDF file
266
266
* @param properties {@link StampingProperties} for the signing document. Note that encryption will be
267
267
* preserved regardless of what is set in properties.
268
- * @throws IOException
268
+ * @throws IOException if some I/O problem occurs
269
269
*/
270
270
public PdfSigner (PdfReader reader , OutputStream outputStream , StampingProperties properties ) throws IOException {
271
271
this (reader , outputStream , null , properties );
@@ -279,7 +279,7 @@ public PdfSigner(PdfReader reader, OutputStream outputStream, StampingProperties
279
279
* @param path File to which the output is temporarily written
280
280
* @param properties {@link StampingProperties} for the signing document. Note that encryption will be
281
281
* preserved regardless of what is set in properties.
282
- * @throws IOException
282
+ * @throws IOException if some I/O problem occurs
283
283
*/
284
284
public PdfSigner (PdfReader reader , OutputStream outputStream , String path , StampingProperties properties ) throws IOException {
285
285
StampingProperties localProps = new StampingProperties (properties ).preserveEncryption ();
@@ -530,8 +530,8 @@ public void setFieldLockDict(PdfSigFieldLock fieldLock) {
530
530
* @param externalDigest an implementation that provides the digest
531
531
* @param estimatedSize the reserved size for the signature. It will be estimated if 0
532
532
* @param sigtype Either Signature.CMS or Signature.CADES
533
- * @throws IOException
534
- * @throws GeneralSecurityException
533
+ * @throws IOException if some I/O problem occurs
534
+ * @throws GeneralSecurityException if some problem during apply security algorithms occurs
535
535
*/
536
536
public void signDetached (IExternalDigest externalDigest , IExternalSignature externalSignature , Certificate [] chain , Collection <ICrlClient > crlList , IOcspClient ocspClient ,
537
537
ITSAClient tsaClient , int estimatedSize , CryptoStandard sigtype ) throws IOException , GeneralSecurityException {
@@ -553,8 +553,8 @@ public void signDetached(IExternalDigest externalDigest, IExternalSignature exte
553
553
* @param estimatedSize the reserved size for the signature. It will be estimated if 0
554
554
* @param sigtype Either Signature.CMS or Signature.CADES
555
555
* @param signaturePolicy the signature policy (for EPES signatures)
556
- * @throws IOException
557
- * @throws GeneralSecurityException
556
+ * @throws IOException if some I/O problem occurs
557
+ * @throws GeneralSecurityException if some problem during apply security algorithms occurs
558
558
*/
559
559
public void signDetached (IExternalDigest externalDigest , IExternalSignature externalSignature , Certificate [] chain , Collection <ICrlClient > crlList , IOcspClient ocspClient ,
560
560
ITSAClient tsaClient , int estimatedSize , CryptoStandard sigtype , SignaturePolicyInfo signaturePolicy ) throws IOException , GeneralSecurityException {
@@ -576,8 +576,8 @@ public void signDetached(IExternalDigest externalDigest, IExternalSignature exte
576
576
* @param estimatedSize the reserved size for the signature. It will be estimated if 0
577
577
* @param sigtype Either Signature.CMS or Signature.CADES
578
578
* @param signaturePolicy the signature policy (for EPES signatures)
579
- * @throws IOException
580
- * @throws GeneralSecurityException
579
+ * @throws IOException if some I/O problem occurs
580
+ * @throws GeneralSecurityException if some problem during apply security algorithms occurs
581
581
*/
582
582
public void signDetached (IExternalDigest externalDigest , IExternalSignature externalSignature , Certificate [] chain , Collection <ICrlClient > crlList , IOcspClient ocspClient ,
583
583
ITSAClient tsaClient , int estimatedSize , CryptoStandard sigtype , SignaturePolicyIdentifier signaturePolicy ) throws IOException , GeneralSecurityException {
@@ -669,8 +669,8 @@ public void signDetached(IExternalDigest externalDigest, IExternalSignature exte
669
669
*
670
670
* @param externalSignatureContainer the interface providing the actual signing
671
671
* @param estimatedSize the reserved size for the signature
672
- * @throws GeneralSecurityException
673
- * @throws IOException
672
+ * @throws GeneralSecurityException if some problem during apply security algorithms occurs
673
+ * @throws IOException if some I/O problem occurs
674
674
*/
675
675
public void signExternalContainer (IExternalSignatureContainer externalSignatureContainer , int estimatedSize ) throws GeneralSecurityException , IOException {
676
676
if (closed ) {
@@ -716,8 +716,8 @@ public void signExternalContainer(IExternalSignatureContainer externalSignatureC
716
716
* @param tsa the timestamp generator
717
717
* @param signatureName the signature name or null to have a name generated
718
718
* automatically
719
- * @throws IOException
720
- * @throws GeneralSecurityException
719
+ * @throws IOException if some I/O problem occurs
720
+ * @throws GeneralSecurityException if some problem during apply security algorithms occurs
721
721
*/
722
722
public void timestamp (ITSAClient tsa , String signatureName ) throws IOException , GeneralSecurityException {
723
723
if (closed ) {
@@ -773,8 +773,8 @@ public void timestamp(ITSAClient tsa, String signatureName) throws IOException,
773
773
* @param outs the output PDF
774
774
* @param externalSignatureContainer the signature container doing the actual signing. Only the
775
775
* method ExternalSignatureContainer.sign is used
776
- * @throws IOException
777
- * @throws GeneralSecurityException
776
+ * @throws IOException if some I/O problem occurs
777
+ * @throws GeneralSecurityException if some problem during apply security algorithms occurs
778
778
*/
779
779
public static void signDeferred (PdfDocument document , String fieldName , OutputStream outs , IExternalSignatureContainer externalSignatureContainer ) throws IOException , GeneralSecurityException {
780
780
SignatureUtil signatureUtil = new SignatureUtil (document );
@@ -1041,7 +1041,7 @@ protected void preClose(Map<PdfName, Integer> exclusionSizes) throws IOException
1041
1041
* {@link #preClose(Map)}, {@link #getRangeStream()} and {@link #close(PdfDictionary)}.
1042
1042
*
1043
1043
* @return The {@link InputStream} of bytes to be signed.
1044
- * @throws IOException
1044
+ * @throws IOException if some I/O problem occurs
1045
1045
*/
1046
1046
protected InputStream getRangeStream () throws IOException {
1047
1047
RandomAccessSourceFactory fac = new RandomAccessSourceFactory ();
@@ -1121,8 +1121,8 @@ protected void close(PdfDictionary update) throws IOException {
1121
1121
/**
1122
1122
* Returns the underlying source.
1123
1123
*
1124
- * @return The underlying source
1125
- * @throws IOException
1124
+ * @return the underlying source
1125
+ * @throws IOException if some I/O problem occurs
1126
1126
*/
1127
1127
protected IRandomAccessSource getUnderlyingSource () throws IOException {
1128
1128
RandomAccessSourceFactory fac = new RandomAccessSourceFactory ();
@@ -1155,8 +1155,8 @@ protected void addDocMDP(PdfSignature crypto) {
1155
1155
* Adds keys to the signature dictionary that define the field permissions.
1156
1156
* This method is only used for signatures that lock fields.
1157
1157
*
1158
- * @param crypto the signature dictionary
1159
- * @param fieldLock
1158
+ * @param crypto the signature dictionary
1159
+ * @param fieldLock the {@link PdfSigFieldLock} instance specified the field lock to be set
1160
1160
*/
1161
1161
protected void addFieldMDP (PdfSignature crypto , PdfSigFieldLock fieldLock ) {
1162
1162
PdfDictionary reference = new PdfDictionary ();
0 commit comments