You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2021/10/07 17:50:44 UTC
svn commit: r1894000 -
/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature.java
Author: tilman
Date: Thu Oct 7 17:50:44 2021
New Revision: 1894000
URL: http://svn.apache.org/viewvc?rev=1894000&view=rev
Log:
PDFBOX-4892: improve javadoc, as suggested by valerybokov
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature.java
Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature.java?rev=1894000&r1=1893999&r2=1894000&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature.java Thu Oct 7 17:50:44 2021
@@ -331,6 +331,7 @@ public class PDSignature implements COSO
* @param pdfFile The signed pdf file as InputStream. It will be closed in this method.
* @return a byte array containing the signature
* @throws IOException if the pdfFile can't be read
+ * @throws IndexOutOfBoundsException if the byterange array is not long enough
*/
public byte[] getContents(InputStream pdfFile) throws IOException
{
@@ -347,6 +348,7 @@ public class PDSignature implements COSO
* @param pdfFile The signed pdf file as byte array
* @return a byte array containing the signature
* @throws IOException if the pdfFile can't be read
+ * @throws IndexOutOfBoundsException if the byterange array is not long enough
*/
public byte[] getContents(byte[] pdfFile) throws IOException
{