com.spire.pdf.interactive.digitalsignatures
Class PdfSignatureProperties

java.lang.Object
  extended by com.spire.pdf.interactive.digitalsignatures.PdfSignatureProperties

public class PdfSignatureProperties
extends java.lang.Object

Signature properties.


Constructor Summary
PdfSignatureProperties()
           
 
Method Summary
 void setCert(java.util.List<PdfCertificate> certs)
          Set the X.509 certificate chain used when signing and verifying signatures that use public-key cryptography.
 void setCert(PdfCertificate cert)
          Set the X.509 certificate used when signing and verifying signatures that use public-key cryptography.
 void setFilter(java.lang.String filter)
          Set the name of the preferred signature handler to use when validating this signature.(Required)
 void setSignatureLength(long signatureLength)
          Set signature length.
 void setSoftwareModuleName(java.lang.String softwareModuleName)
          Set the name of the software module used to create the signature.
 void setSubFilter(java.lang.String subFilter)
          Set a name that describes the encoding of the signature value.(Required)
 

Constructor Detail

PdfSignatureProperties

public PdfSignatureProperties()
Method Detail

setFilter

public void setFilter(java.lang.String filter)
Set the name of the preferred signature handler to use when validating this signature.(Required)

Parameters:
filter - The name of the preferred signature handler.

setSubFilter

public void setSubFilter(java.lang.String subFilter)
Set a name that describes the encoding of the signature value.(Required)

Parameters:
subFilter - The name that describes the encoding of the signature value.

setCert

public void setCert(PdfCertificate cert)
Set the X.509 certificate used when signing and verifying signatures that use public-key cryptography. Required when SubFilter is adbe.x509.rsa_sha1)

Parameters:
cert - The X.509 certificate.

setCert

public void setCert(java.util.List<PdfCertificate> certs)
Set the X.509 certificate chain used when signing and verifying signatures that use public-key cryptography. Required when SubFilter is adbe.x509.rsa_sha1)

Parameters:
certs - The X.509 certificate chain.

setSignatureLength

public void setSignatureLength(long signatureLength)
Set signature length. (Option) Default, signature need to call twice "Sign" method, one is to calculate signature length. If the signature length is known, avoid to calculate signature length by "Sign" method. The signature length.

Parameters:
signatureLength - The signature length.

setSoftwareModuleName

public void setSoftwareModuleName(java.lang.String softwareModuleName)
Set the name of the software module used to create the signature. (Option)

Parameters:
softwareModuleName - The name of the software module.