DigitalSignature constructor

__init__(self, certificate, comments, sign_time)

Constructor of digitalSignature. Uses .Net implementation.


def __init__(self, certificate, comments, sign_time):
    ...
ParameterTypeDescription
certificateSystem.Security.Cryptography.X509Certificates.X509Certificate2Certificate object that was used to sign the document.
commentsSystem.StringThe purpose to signature.
sign_timeSystem.DateTimeThe utc time when the document was signed.

__init__(self, raw_data, password, comments, sign_time)

Constructor of digitalSignature. Uses Bouncy Castle implementation.


def __init__(self, raw_data, password, comments, sign_time):
    ...
ParameterTypeDescription
raw_databytesA byte array containing data from an X.509 certificate.
passwordSystem.StringThe password required to access the X.509 certificate data.
commentsSystem.StringThe purpose to signature.
sign_timeSystem.DateTimeThe utc time when the document was signed.

See Also