PKCS7Detached

PKCS7Detached class

Represents the PKCS#7 object that conform to the PKCS#7 specification in Internet RFC 2315,
PKCS #7: Cryptographic Message Syntax, Version 1.5.
The original signed message digest over the document’s byte range is incorporated as the normal PKCS#7 SignedData field.
No data shall is encapsulated in the PKCS#7 SignedData field.

The PKCS7Detached type exposes the following members:

Constructors

NameDescription
PKCS7Detached(image)Initializes a new instance of the PKCS7Detached class
PKCS7Detached()Inititalizes new instance of the PKCS7Detached class.
PKCS7Detached(pfx, password)Initializes a new instance of the PKCS7Detached class
PKCS7Detached(pfx, password)Initializes a new instance of the PKCS7Detached class

Properties

NameDescription
custom_appearanceGets/sets the custom appearance.
authorityThe name of the person or authority signing the document.
dateThe time of signing.
locationThe CPU host name or physical location of the signing.
reasonThe reason for the signing, such as (I agree…).
contact_infoInformation provided by the signer to enable a recipient to contact the signer
to verify the signature, e.g. a phone number.
byte_rangeAn array of pairs of integers (starting byte offset, length in bytes)
that shall describe the exact byte range for the digest calculation.
timestamp_settingsGets/sets timestamp settings.
ocsp_settingsGets/sets ocsp settings.
use_ltvGets/sets ltv validation flag.
show_propertiesForce to show/hide signature properties.
In case ShowProperties is true signature field has predefined format of appearance (strings to represent):
——————————————-
Digitally signed by {certificate subject}
Date: {signature.Date}
Reason: {signature.Reason}
Location: {signature.Location}
——————————————-
where {X} is placeholder for X value. Also signature can have image, in this case listed strings are placed over image.
ShowProperties is true by default.

Methods

NameDescription
verify()Verify the document regarding this signature and return true if document is valid
or otherwise false.

See Also