SignedData Class
Namespace: Rebex.Security.Cryptography.Pkcs
Assembly: Rebex.Common.dll (version 7.0.9313)
Represents a CMS/PKCS #7 signed data.
Syntax
public class SignedData : PkcsBase
Inherited Members
Constructors
| Name | Description |
|---|---|
| SignedData() | Creates an instance of SignedData class. |
| SignedData(ContentInfo) | Creates an instance of SignedData class using the specified content information as the inner content. |
| SignedData(ContentInfo, Boolean) | Creates an instance of SignedData class using the specified content information as the inner content. |
Properties
| Name | Description |
|---|---|
| CertificateFinder | Gets or sets the ICertificateFinder to be used to find certificates corresponding to a SubjectIdentifier. |
| CertificateRevocationLists | Gets the collection of certificate revocation lists (CRLs) that are embedded in the message. |
| Certificates | Gets the collection of certificates that are embedded in the message. |
| ContentInfo | Gets or sets the inner content information for this CMS/PKCS #7 message. It contains the content type identifier and content data. |
| Detached | Gets or sets a value indicating whether the actual content is detached from the message. |
| IgnoreRedundantData | Gets or sets a value indicating whether to ignore redundant data in ASN.1 structure. |
| IncludeOption | Specifies what parts of the certificate chain should be included in the signed data. |
| SignerInfos | Gets the collection of signers associated with this CMS/PKCS #7 message. |
| Silent | Gets or sets a value indicating whether cryptographic providers are allowed to display any user interface (UI) when working with private keys. |
| UseDer | Gets or sets a value indicating whether to use DER encoding rules when encoding SignedData. |
Methods
| Name | Description |
|---|---|
| Clone() | Creates a copy of this object. |
| Decode(Byte[]) | Decodes an encoded CMS/PKCS #7 signed message from raw data. Upon successful decoding, information can be retrieved using SignedData methods and properties. |
| Encode() | Encodes the SignedData object into CMS/PKCS #7 message data. |
| IsSignedData(Byte[], Int32, Int32) | Determines whether the specified content info ASN.1 sequence is a signed data sequence. |
| Load(Stream) | Loads a CMS/PKCS #7 signed message from a stream. Upon successful decoding, information can be retrieved using SignedData methods and properties. |
| LoadSignedOrEnvelopedData(Stream, ICertificateFinder, Boolean) | Loads a CMS/PKCS #7 signed or enveloped message from a stream. Returns an instance of SignedData for signed message, EnvelopedData for enveloped message, or null for methods and properties. Inherited from PkcsBase. |
| Save(Stream) | Saves SignedData into a stream. |
| Sign() | Creates a signatures for all signers that do not have one yet. |
| Sign(SignatureOptions) | Creates a signatures for all signers that do not have one yet. |
| Validate() | Validates all digital signatures on this CMS/PKCS #7 signed message and validates all the signers' certificates. |
| Validate(Boolean, ValidationOptions) | Validates all digital signatures on this CMS/PKCS #7 signed message. Optionally, signers' certificates are validated, and the specified validation options are taken into account. |
| Validate(Boolean, ValidationOptions, CertificateChainEngine) | Validates all digital signatures on this CMS/PKCS #7 signed message. Optionally, signers' certificates are validated, and the specified validation options are taken into account. |