EnvelopedData Class
Namespace: Rebex.Security.Cryptography.Pkcs
Assembly: Rebex.Common.dll (version 7.0.9147)
Represents a CMS/PKCS #7 encrypted data.
Syntax
public class EnvelopedData : PkcsBase
Inherited Members
Constructors
Name | Description |
---|---|
Enveloped |
Creates an instance of Enveloped |
Enveloped |
Creates an instance of Signed |
Enveloped |
Creates an instance of Enveloped |
Enveloped |
Creates an instance of Enveloped |
Properties
Name | Description |
---|---|
Certificate |
Gets or sets the ICertificate |
Certificate |
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. |
Content |
Gets the identifier of the algorithm used to encrypt the content. |
Content |
Gets the inner content information for this CMS/PKCS #7 message. It contains the content type identifier and content data. |
Has |
Returns a value indicating whether the private key to decrypt the symmetric key and encrypted content is available. |
Is |
Gets a value indicating whether the content is encrypted. |
Recipient |
Gets the collection of recipients 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. |
Unprotected |
Gets the collection of unprotected (unencrypted) attributes associated with this CMS/PKCS #7 message. |
Use |
Gets or sets a value indicating whether to use DER encoding rules when encoding Signed |
Methods
Name | Description |
---|---|
Acquire |
Tries acquiring a private key unless it is already available. |
Clone() | Creates a copy of this object. |
Decode(Byte[]) | Decodes an encoded CMS/PKCS #7 encrypted message from raw data.
Upon successful decoding, information can be retrieved using Enveloped |
Decrypt() | Decrypts the contents of the CMS/PKCS #7 message. |
Encode() | Encodes the Enveloped |
Encrypt() | Encrypts the contents of the CMS/PKCS #7 message. |
Get |
Gets the symmetric algorithm used to encrypt or decrypt the content, or null if it cannot be retrieved. |
Get |
Gets the symmetric key used to encrypt the message, or null if it cannot be retrieved. |
Is |
Determines whether the specified content info ASN.1 sequence is an enveloped data sequence. |
Load(Stream) | Loads a CMS/PKCS #7 encrypted message from a stream.
Upon successful decoding, information can be retrieved using Enveloped |
Load |
Loads a CMS/PKCS #7 signed or enveloped message from a stream.
Returns an instance of Signed |
Save(Stream) | Saves Enveloped |