SignedData object

[The SignedData object is available for use in the operating systems specified in the Requirements section. Instead, use the SignedCms Class in the System.Security.Cryptography.Pkcs namespace.]

The SignedData object provides properties and methods to establish the content to be signed with a digital signature, to sign or cosign data digitally, and to verify the digital signature of signed data. The signed message is in PKCS #7 format.

A data signature, if verified, proves the association between a signer and data and shows that the data was not changed in any way after the signature was created.

Members

The SignedData object has these types of members:

Methods

The SignedData object has these methods.

Method Description
CoSign Cosigns an already signed message.
Sign Creates a digital signature on the content to be signed.
Verify Determines the validity of a signature or signatures.

 

Properties

The SignedData object has these properties.

Property Access type Description
Certificates
Read-only
Retrieves the Certificates collection of the signed data.
Content
Read/write
Data to be signed. This property must be initialized before the Sign method is called.
When the value of this property is reset, directly or indirectly, the whole state of the object is reset, and any signature that was associated with the object before the property was changed is lost.
This is the default property.
Signers
Read-only
Retrieves the Signers collection that represents the signature creators of the data.

 

Remarks

The SignedData object can be created, and it is safe for scripting. The ProgID for the SignedData object is CAPICOM.SignedData.1.

Requirements

Requirement Value
Redistributable
CAPICOM 2.0 or later on Windows Server 2003 and Windows XP
DLL
Capicom.dll

See also

Cryptography Objects