Method SetPrivateKeyProviderPin
- Namespace
- DotNetBrowser.Browser
- Assembly
- DotNetBrowser.dll
SetPrivateKeyProviderPin(CspParameters)
Sets the key exchange PIN for the particular cryptographic service provider (CSP) and the particular key container in it. This functionality can be used to set the PIN that is requested when trying to use a client certificate stored on the smart card.
bool SetPrivateKeyProviderPin(CspParameters cspParameters)
Parameters
cspParametersCspParametersThe parameters of the private key CSP container.
Returns
- bool
trueif the PIN was set successfully,falseotherwise.
Remarks
This functionality is Windows-only. The implementation will return false in other environments.
If the PIN was not set successfully, the actual error will be written to DotNetBrowser logs.
Exceptions
- ObjectDisposedException
The IBrowser has already been disposed.
- ConnectionClosedException
The connection to the Chromium engine is closed.
- ArgumentException
The
cspParametersis null.- ArgumentException
Any of the required parameters in
cspParametersis null, empty, or consists only of white-space characters.