public class PdfDigitalSignatureDetails
extends java.lang.Object
At the moment digitally signing PDF documents is only available on .NET 2.0 or higher.
To digitally sign a PDF document when it is created by Aspose.Words, set the PdfSaveOptions.getDigitalSignatureDetails() / PdfSaveOptions.setDigitalSignatureDetails(com.aspose.words.PdfDigitalSignatureDetails) property to a valid PdfDigitalSignatureDetails object and then save the document in the PDF format passing the PdfSaveOptions as a parameter into the Document.save(java.lang.String, com.aspose.words.SaveOptions) method.
Aspose.Words creates a PKCS#7 signature over the whole PDF document and uses the "Adobe.PPKMS" filter and "adbe.pkcs7.sha1" subfilter when creating a digital signature.
| Constructor and Description |
|---|
PdfDigitalSignatureDetails()
Initializes an instance of this class.
|
PdfDigitalSignatureDetails(CertificateHolder certificateHolder,
java.lang.String reason,
java.lang.String location,
java.util.Date signatureDate)
Initializes an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
CertificateHolder |
getCertificateHolder()
Returns the certificate holder object that contains the certificate was used to sign the document.
|
int |
getHashAlgorithm()
Gets the hash algorithm.
|
java.lang.String |
getLocation()
Gets the location of the signing.
|
java.lang.String |
getReason()
Gets the reason for the signing.
|
java.util.Date |
getSignatureDate()
Gets the date of the signing.
|
PdfDigitalSignatureTimestampSettings |
getTimestampSettings()
Gets the digital signature timestamp settings.
|
void |
setCertificateHolder(CertificateHolder value)
Returns the certificate holder object that contains the certificate was used to sign the document.
|
void |
setHashAlgorithm(int value)
Sets the hash algorithm.
|
void |
setLocation(java.lang.String value)
Sets the location of the signing.
|
void |
setReason(java.lang.String value)
Sets the reason for the signing.
|
void |
setSignatureDate(java.util.Date value)
Sets the date of the signing.
|
void |
setTimestampSettings(PdfDigitalSignatureTimestampSettings value)
Sets the digital signature timestamp settings.
|
public PdfDigitalSignatureDetails()
public PdfDigitalSignatureDetails(CertificateHolder certificateHolder, java.lang.String reason, java.lang.String location, java.util.Date signatureDate)
certificateHolder - A certificate holder which contains the certificate itself.reason - The reason for signing.location - The location of signing.signatureDate - The date and time of signing.public CertificateHolder getCertificateHolder()
public void setCertificateHolder(CertificateHolder value)
value - The certificate holder object that contains the certificate was used to sign the document.public java.lang.String getReason()
public void setReason(java.lang.String value)
value - The reason for the signing.public java.lang.String getLocation()
public void setLocation(java.lang.String value)
value - The location of the signing.public java.util.Date getSignatureDate()
The default value is the current time.
This value will appear in the digital signature as an unverified computer time.
public void setSignatureDate(java.util.Date value)
The default value is the current time.
This value will appear in the digital signature as an unverified computer time.
value - The date of the signing.public int getHashAlgorithm()
PdfDigitalSignatureHashAlgorithm constants.public void setHashAlgorithm(int value)
value - The hash algorithm. The value must be one of PdfDigitalSignatureHashAlgorithm constants.public PdfDigitalSignatureTimestampSettings getTimestampSettings()
The default value is null and the digital signature will not be time-stamped. When this property is set to a valid PdfDigitalSignatureTimestampSettings object, then the digital signature in the PDF document will be time-stamped.
public void setTimestampSettings(PdfDigitalSignatureTimestampSettings value)
The default value is null and the digital signature will not be time-stamped. When this property is set to a valid PdfDigitalSignatureTimestampSettings object, then the digital signature in the PDF document will be time-stamped.
value - The digital signature timestamp settings.