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.
Namespace:
Rebex.Security.Cryptography.Pkcs
Assembly:
Rebex.Common (in Rebex.Common.dll)
Syntax
Visual Basic |
---|
Public Shared Function LoadSignedOrEnvelopedData ( _ input As Stream, _ finder As ICertificateFinder, _ silent As Boolean _ ) As PkcsBase |
C# |
---|
public static PkcsBase LoadSignedOrEnvelopedData( Stream input, ICertificateFinder finder, bool silent ) |
Parameters
- input
- Type: System.IO..::..Stream
A stream from which to load the message.
- finder
- Type: Rebex.Security.Cryptography.Pkcs..::..ICertificateFinder
Gets or sets the ICertificateFinder to be used to find certificates corresponding to a SubjectIdentifier.
- silent
- Type: System..::..Boolean
A value indicating whether cryptographic providers are permitted to display a user interface.