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 2016/07/20 16:23:02 UTC

svn commit: r1753543 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature.java

Author: tilman
Date: Wed Jul 20 16:23:02 2016
New Revision: 1753543

URL: http://svn.apache.org/viewvc?rev=1753543&view=rev
Log:
PDFBOX-3017: improve javadoc

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature.java?rev=1753543&r1=1753542&r2=1753543&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature.java Wed Jul 20 16:23:02 2016
@@ -102,6 +102,7 @@ public class PDSignature implements COSO
      *
      * @return The COS dictionary that matches this Java object.
      */
+    @Override
     public COSDictionary getCOSObject()
     {
         return dictionary;
@@ -138,7 +139,10 @@ public class PDSignature implements COSO
     }
 
     /**
-     * Sets the name.
+     * Sets the name of the person or authority signing the document. According to the PDF
+     * specification, this value should be used only when it is not possible to extract the name
+     * from the signature.
+     *
      * @param name the name to be used
      */
     public void setName(String name)
@@ -147,7 +151,8 @@ public class PDSignature implements COSO
     }
 
     /**
-     * Sets the location.
+     * Sets the CPU host name or physical location of the signing.
+     *
      * @param location the location to be used
      */
     public void setLocation(String location)
@@ -156,7 +161,7 @@ public class PDSignature implements COSO
     }
 
     /**
-     * Sets the reason.
+     * Sets the reason for the signing, such as (I agree...).
      *
      * @param reason the reason to be used
      */
@@ -166,7 +171,8 @@ public class PDSignature implements COSO
     }
 
     /**
-     * Sets the contact info.
+     * Sets the contact info provided by the signer to enable a recipient to contact the signer to
+     * verify the signature, e.g. a phone number.
      *
      * @param contactInfo the contact info to be used
      */
@@ -205,7 +211,9 @@ public class PDSignature implements COSO
     }
 
     /**
-     * Returns the name.
+     * Returns the name of the person or authority signing the document. According to the PDF
+     * specification, this value should be used only when it is not possible to extract the name
+     * from the signature.
      *
      * @return the name
      */
@@ -215,7 +223,7 @@ public class PDSignature implements COSO
     }
 
     /**
-     * Returns the location.
+     * Returns the CPU host name or physical location of the signing.
      *
      * @return the location
      */
@@ -225,7 +233,7 @@ public class PDSignature implements COSO
     }
 
     /**
-     * Returns the reason.
+     * Returns the reason for the signing, such as (I agree...).
      *
      * @return the reason
      */
@@ -235,9 +243,10 @@ public class PDSignature implements COSO
     }
 
     /**
-     * Returns the contact info.
+     * Returns the contact info provided by the signer to enable a recipient to contact the signer
+     * to verify the signature, e.g. a phone number.
      *
-     * @return teh contact info
+     * @return the contact info
      */
     public String getContactInfo()
     {