MimeKit.Cryptography.CmsSigner.CmsSigner C# (CSharp) Method

CmsSigner() public method

Initializes a new instance of the MimeKit.Cryptography.CmsSigner class.

Creates a new CmsSigner, loading the X.509 certificate and private key from the specified stream.

The initial value of the MimeKit.Cryptography.DigestAlgorithm will be set to MimeKit.Cryptography.DigestAlgorithm.Sha1 and both the SignedAttributes and UnsignedAttributes properties will be initialized to empty tables.

/// is null. /// -or- /// is null. /// /// does not contain a private key. /// /// An I/O error occurred. ///
public CmsSigner ( System.Stream stream, string password ) : System
stream System.Stream The raw certificate and key data in pkcs12 format.
password string The password to unlock the stream.
return System
		public CmsSigner (Stream stream, string password) : this ()
		{
			if (stream == null)
				throw new ArgumentNullException ("stream");

			if (password == null)
				throw new ArgumentNullException ("password");

			LoadPkcs12 (stream, password);
		}

Same methods

CmsSigner::CmsSigner ( ) : System
CmsSigner::CmsSigner ( IEnumerable chain, AsymmetricKeyParameter key ) : System
CmsSigner::CmsSigner ( System.Security.Cryptography.X509Certificates.X509Certificate2 certificate ) : System
CmsSigner::CmsSigner ( X509Certificate certificate, AsymmetricKeyParameter key ) : System
CmsSigner::CmsSigner ( string fileName, string password ) : System