pdftools_sdk.crypto.providers.swisscom_sig_srv.signature_configuration

Classes

SignatureConfiguration(handle)

The signature configuration

class pdftools_sdk.crypto.providers.swisscom_sig_srv.signature_configuration.SignatureConfiguration(handle)[source]

Bases: SignatureConfiguration

The signature configuration

property hash_algorithm: HashAlgorithm

The message digest algorithm

The algorithm used to hash the document and from which the cryptographic signature is created.

Default is pdftools_sdk.crypto.hash_algorithm.HashAlgorithm.SHA256

Returns:

pdftools_sdk.crypto.hash_algorithm.HashAlgorithm

property signature_format: SignatureFormat

The format (encoding) of the cryptographic signature

Default is pdftools_sdk.crypto.signature_format.SignatureFormat.ADBEPKCS7DETACHED

Returns:

pdftools_sdk.crypto.signature_format.SignatureFormat

property add_timestamp: bool

Whether to add a trusted time-stamp to the signature

Default is False

Returns:

bool

property embed_validation_information: bool

Whether to embed validation information into the signature (LTV)

Default is True

Returns:

bool