| Modifier and Type | Field and Description |
|---|---|
| private final COSDictionary | |
| public static final COSName | FILTER_ADOBE_PPKLITE
A signature filter value. |
| public static final COSName | FILTER_CICI_SIGNIT
A signature filter value. |
| public static final COSName | FILTER_ENTRUST_PPKEF
A signature filter value. |
| public static final COSName | FILTER_VERISIGN_PPKVS
A signature filter value. |
| public static final COSName | SUBFILTER_ADBE_PKCS7_DETACHED
A signature subfilter value. |
| public static final COSName | SUBFILTER_ADBE_PKCS7_SHA1
A signature subfilter value. |
| public static final COSName | SUBFILTER_ADBE_X509_RSA_SHA1
A signature subfilter value. |
| public static final COSName | SUBFILTER_ETSI_CADES_DETACHED
A signature subfilter value. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int[] | Returns: an integer array with the byterange, or an empty array if there is none.Read out the byterange from the file. |
| public String | Returns: the contact infoReturns the contact info provided by the signer to enable a recipient to contact the signer to verify the signature, e.g. a phone number. |
| public byte[] | Returns: a byte array containing the signature, or an empty array if there isn't any.Returns the /Contents string as a byte array, i.e. the embedded signature between the byterange gap. |
| public byte[] | Returns: a byte array containing the signatureThe signed pdf file as InputStream. It will be closed in this method. pdfFile)Will return the embedded signature between the byterange gap. |
| public byte[] | Returns: a byte array containing the signatureThe signed pdf file as byte array pdfFile)Will return the embedded signature between the byterange gap. |
| private byte[] | |
| public COSDictionary | Returns: The COS dictionary that matches this Java object.Implements org. Convert this standard java object to a COS dictionary. |
| public String | |
| public String | |
| public String | |
| public PDPropBuild | |
| public String | |
| public Calendar | |
| public byte[] | Returns: a byte array containing only the signed part of the contentThe signed pdf file as InputStream. It will be closed in this method. pdfFile)Return the signed content of the document. |
| public byte[] | Returns: a byte array containing only the signed part of the contentThe signed pdf file as byte array pdfFile)Return the signed content of the document. |
| public String | |
| public void | |
| public void | setContactInfo(String
the contact info to be used contactInfo)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. |
| public void | |
| public void | |
| public void | setLocation(String
the location to be used location)Sets the CPU host name or physical location of the signing. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setSubFilter(COSName
the subfilter that shall be used. subfilter)Set a subfilter that specify the signature that should be used. |
| public void |
| dictionary | back to summary |
|---|---|
| private final COSDictionary dictionary | |
| FILTER_ADOBE_PPKLITE | back to summary |
|---|---|
| public static final COSName FILTER_ADOBE_PPKLITE A signature filter value. | |
| FILTER_CICI_SIGNIT | back to summary |
|---|---|
| public static final COSName FILTER_CICI_SIGNIT A signature filter value. | |
| FILTER_ENTRUST_PPKEF | back to summary |
|---|---|
| public static final COSName FILTER_ENTRUST_PPKEF A signature filter value. | |
| FILTER_VERISIGN_PPKVS | back to summary |
|---|---|
| public static final COSName FILTER_VERISIGN_PPKVS A signature filter value. | |
| SUBFILTER_ADBE_PKCS7_DETACHED | back to summary |
|---|---|
| public static final COSName SUBFILTER_ADBE_PKCS7_DETACHED A signature subfilter value. | |
| SUBFILTER_ADBE_PKCS7_SHA1 | back to summary |
|---|---|
| public static final COSName SUBFILTER_ADBE_PKCS7_SHA1 A signature subfilter value. | |
| SUBFILTER_ADBE_X509_RSA_SHA1 | back to summary |
|---|---|
| public static final COSName SUBFILTER_ADBE_X509_RSA_SHA1 A signature subfilter value. | |
| SUBFILTER_ETSI_CADES_DETACHED | back to summary |
|---|---|
| public static final COSName SUBFILTER_ETSI_CADES_DETACHED A signature subfilter value. | |
| PDSignature | back to summary |
|---|---|
| public PDSignature() Default constructor. | |
| PDSignature | back to summary |
|---|---|
| public PDSignature(COSDictionary dict) Constructor.
| |
| getByteRange | back to summary |
|---|---|
| public int[] getByteRange() Read out the byterange from the file.
| |
| getContactInfo | back to summary |
|---|---|
| public String getContactInfo() 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.
| |
| getContents | back to summary |
|---|---|
| public byte[] getContents() Returns the /Contents string as a byte array, i.e. the embedded signature between the byterange gap.
| |
| getContents | back to summary |
|---|---|
| public byte[] getContents(InputStream pdfFile) throws IOException Will return the embedded signature between the byterange gap.
| |
| getContents | back to summary |
|---|---|
| public byte[] getContents(byte[] pdfFile) throws IOException Will return the embedded signature between the byterange gap.
| |
| getConvertedContents | back to summary |
|---|---|
| private byte[] getConvertedContents(InputStream is) throws IOException | |
| getCOSObject | back to summary |
|---|---|
| public COSDictionary getCOSObject() Implements org. Convert this standard java object to a COS dictionary.
| |
| getFilter | back to summary |
|---|---|
| public String getFilter() Returns the filter.
| |
| getLocation | back to summary |
|---|---|
| public String getLocation() Returns the CPU host name or physical location of the signing.
| |
| getName | back to summary |
|---|---|
| public String getName() 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.
| |
| getPropBuild | back to summary |
|---|---|
| public PDPropBuild getPropBuild() PDF signature build dictionary. Provides information about the signature handler.
| |
| getReason | back to summary |
|---|---|
| public String getReason() Returns the reason for the signing, such as (I agree...).
| |
| getSignDate | back to summary |
|---|---|
| public Calendar getSignDate() Returns the sign date.
| |
| getSignedContent | back to summary |
|---|---|
| public byte[] getSignedContent(InputStream pdfFile) throws IOException Return the signed content of the document. This is not a PDF file, nor is it the PDF file before signing, it is the byte sequence made of the input minus the area where the signature bytes will be. See "The ByteRange and signature value" in the document Digital Signatures in a PDF.
| |
| getSignedContent | back to summary |
|---|---|
| public byte[] getSignedContent(byte[] pdfFile) throws IOException Return the signed content of the document. This is not a PDF file, nor is it the PDF file before signing, it is the byte sequence made of the input minus the area where the signature bytes will be. See "The ByteRange and signature value" in the document Digital Signatures in a PDF.
| |
| getSubFilter | back to summary |
|---|---|
| public String getSubFilter() Returns the subfilter.
| |
| setByteRange | back to summary |
|---|---|
| public void setByteRange(int[] range) Sets the byte range.
| |
| setContactInfo | back to summary |
|---|---|
| public void setContactInfo(String contactInfo) 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.
| |
| setContents | back to summary |
|---|---|
| public void setContents(byte[] bytes) Sets the contents.
| |
| setFilter | back to summary |
|---|---|
| public void setFilter(COSName filter) Set the filter.
| |
| setLocation | back to summary |
|---|---|
| public void setLocation(String location) Sets the CPU host name or physical location of the signing.
| |
| setName | back to summary |
|---|---|
| public void setName(String 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.
| |
| setPropBuild | back to summary |
|---|---|
| public void setPropBuild(PDPropBuild propBuild) PDF signature build dictionary. Provides information about the signature handler.
| |
| setReason | back to summary |
|---|---|
| public void setReason(String reason) Sets the reason for the signing, such as (I agree...).
| |
| setSignDate | back to summary |
|---|---|
| public void setSignDate(Calendar cal) Set the sign date.
| |
| setSubFilter | back to summary |
|---|---|
| public void setSubFilter(COSName subfilter) Set a subfilter that specify the signature that should be used.
| |
| setType | back to summary |
|---|---|
| public void setType(COSName type) Set the dictionary type.
| |