Cms |
public CmsSigner( X509Certificate certificate, AsymmetricKeyParameter key, SubjectIdentifierType signerIdentifierType = SubjectIdentifierType.IssuerAndSerialNumber )
| Exception | Condition |
|---|---|
| ArgumentNullException | certificate is . -or- key is . |
| ArgumentException | certificate cannot be used for signing. -or- key is not a private key. |
The initial value of the DigestAlgorithm will be set to Sha256 and both the SignedAttributes and UnsignedAttributes properties will be initialized to empty tables.