Click or drag to resize

IBrowserSetPrivateKeyProviderPin Method

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.

Namespace:  DotNetBrowser.Browser
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.23.3
Syntax
C#
bool SetPrivateKeyProviderPin(
	CspParameters cspParameters
)

Parameters

cspParameters
Type: DotNetBrowser.BrowserCspParameters
The parameters of the private key CSP container.

Return Value

Type: Boolean
true if the PIN was set successfully, false otherwise.
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe IBrowser has already been disposed.
ConnectionClosedExceptionThe 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.
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.

See Also