SetKey()
DSASignatureFormatter::SetKey(SharedPtr<AsymmetricAlgorithm>) method
Sets key to use for signing.
void System::Security::Cryptography::DSASignatureFormatter::SetKey(SharedPtr<AsymmetricAlgorithm> key) override
Arguments
| Parameter | Type | Description |
|---|---|---|
| key | SharedPtr<AsymmetricAlgorithm> | DSA algorithm that holds the private key. |
Exceptions
| Exception | Description |
|---|---|
| ArgumentNullException | If key is null. |
| InvalidCastException | If key is not a DSA algorithm. |
See Also
- Typedef SharedPtr
- Class AsymmetricAlgorithm
- Class DSASignatureFormatter
- Namespace System::Security::Cryptography
- Library Aspose.Slides