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
cspParameters
CspParametersThe parameters of the private key CSP container.
Returns
- bool
true
if the PIN was set successfully,false
otherwise.
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
cspParameters
is null.- ArgumentException
Any of the required parameters in
cspParameters
is null, empty, or consists only of white-space characters.