Cms |
public CmsSigner( Stream stream, string password, SubjectIdentifierType signerIdentifierType = SubjectIdentifierType.IssuerAndSerialNumber )
Exception | Condition |
---|---|
ArgumentNullException | stream is null. -or- password is null. |
ArgumentException | stream does not contain a private key. -or- stream does not contain a certificate that could be used for signing. |
IOException | An I/O error occurred. |
Creates a new CmsSigner, loading the X.509 certificate and private key from the specified stream.
The initial value of the DigestAlgorithm will be set to Sha256 and both the SignedAttributes and UnsignedAttributes properties will be initialized to empty tables.