PublicKeyInfo.LoadSignedOrEnvelopedData Method
Namespace: Rebex.Security.Cryptography.Pkcs
Assembly: Rebex.Common.dll (version 7.0.9083)
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.
Declaration
public static PkcsBase LoadSignedOrEnvelopedData(Stream input, ICertificateFinder finder, bool silent)
Parameters
Type | Name | Description |
---|---|---|
Stream | input | A stream from which to load the message. |
ICertificateFinder | finder | Gets or sets the ICertificateFinder to be used to find certificates corresponding to a SubjectIdentifier. |
Boolean | silent | A value indicating whether cryptographic providers are permitted to display a user interface. |
Returns
Type | Description |
---|---|
PkcsBase | An instance of SignedData, EnvelopedData or null. |