Cms |
public CmsRecipient( Stream stream, SubjectIdentifierType recipientIdentifierType = SubjectIdentifierType.IssuerAndSerialNumber )
Exception | Condition |
---|---|
ArgumentNullException | stream is null. |
FormatException | The specified file does not contain a certificate. |
IOException | An I/O error occurred. |
Creates a new CmsRecipient, loading the certificate from the specified stream.
If the X.509 certificate contains an S/MIME capability extension, the initial value of the EncryptionAlgorithms property will be set to whatever encryption algorithms are defined by the S/MIME capability extension, otherwise int will be initialized to a list containing only the Triple-Des encryption algorithm which should be safe to assume for all modern S/MIME v3.x client implementations.