DigitalSignatureOptions
Options for creating a digital signature on a PDF document.
A digital signature requires a certificate (PFX/P12 file) to cryptographically sign the document. Additional metadata such as signer name, reason, and location can optionally be included. For PAdES-T compliance, configure a Timestamp to include a trusted timestamp.
from nutrient_sdk import DigitalSignatureOptionsConstruction
DigitalSignatureOptions()Creates a new DigitalSignatureOptions instance with default settings.
Properties
certificate_password
@propertydef certificate_password(self) -> str
@certificate_password.setterdef certificate_password(self, value: str) -> NoneThe password to decrypt the PFX/P12 certificate file.
Type: str
certificate_path
@propertydef certificate_path(self) -> str
@certificate_path.setterdef certificate_path(self, value: str) -> NoneThe file path to the PFX/P12 certificate file.
Type: str
certificate_serial_number
@propertydef certificate_serial_number(self) -> str
@certificate_serial_number.setterdef certificate_serial_number(self, value: str) -> NoneThe serial number of the certificate to use from the operating-system certificate store or a smartcard. Required when KeySource is WindowsCertificateStore or SmartCard.
Type: str
certification
@propertydef certification(self) -> SignatureCertificationLevel
@certification.setterdef certification(self, value: SignatureCertificationLevel) -> NoneThe certification (DocMDP) level of the signature.
Type: SignatureCertificationLevel
contact_info
@propertydef contact_info(self) -> str
@contact_info.setterdef contact_info(self, value: str) -> NoneContact information for the signer.
Type: str
format
@propertydef format(self) -> SignatureFormat
@format.setterdef format(self, value: SignatureFormat) -> NoneThe container format of the signature.
Type: SignatureFormat
hash_algorithm
@propertydef hash_algorithm(self) -> SignatureHashAlgorithm
@hash_algorithm.setterdef hash_algorithm(self, value: SignatureHashAlgorithm) -> NoneThe hash algorithm to use for the signature.
Type: SignatureHashAlgorithm
key_source
@propertydef key_source(self) -> SignatureKeySource
@key_source.setterdef key_source(self, value: SignatureKeySource) -> NoneWhere the signing key and certificate come from.
Type: SignatureKeySource
level
@propertydef level(self) -> SignatureLevel
@level.setterdef level(self, value: SignatureLevel) -> NoneThe PAdES baseline level to produce.
Type: SignatureLevel
location
@propertydef location(self) -> str
@location.setterdef location(self, value: str) -> NoneThe location where the document was signed.
Type: str
pkcs11
@propertydef pkcs11(self) -> Pkcs11Options
@pkcs11.setterdef pkcs11(self, value: Pkcs11Options) -> NoneThe PKCS#11 module and key location. Required when KeySource is Pkcs11.
Type: Pkcs11Options
reason
@propertydef reason(self) -> str
@reason.setterdef reason(self, value: str) -> NoneThe reason for signing the document.
Type: str
signer_name
@propertydef signer_name(self) -> str
@signer_name.setterdef signer_name(self, value: str) -> NoneThe name of the person or entity signing the document.
Type: str
smart_card_pin
@propertydef smart_card_pin(self) -> str
@smart_card_pin.setterdef smart_card_pin(self, value: str) -> NoneThe PIN used to unlock a smartcard key. Used when KeySource is SmartCard.
Type: str
timestamp
@propertydef timestamp(self) -> TimestampConfiguration
@timestamp.setterdef timestamp(self, value: TimestampConfiguration) -> NoneOptional timestamp configuration for PAdES-T compliance.
Type: TimestampConfiguration