Class for managing Hardware Key (YubiKey PIV) specific options.
More...
|
| | HardwareKeyOptions (string targetSerial, string pin) |
| | Constructor for the HardwareKeyOptions class.
|
| |
|
| static List< string > | ListAvailableKeys () |
| | Lists the serial numbers of all connected YubiKeys with PIV support.
|
| |
|
|
string | Pin [get, set] |
| | UTF-8 PIN required to access the PIV functions on the target YubiKey.
|
| |
|
string | TargetSerial [get, set] |
| | Serial number of the target YubiKey to be used for signing. It should match one returned by ListAvailableKeys
|
| |
Class for managing Hardware Key (YubiKey PIV) specific options.
Allows discovering available keys, selecting a target key by serial, and setting the required PIN. This object should be configured and then passed to ExtendedOptions.
◆ HardwareKeyOptions()
| LicenseSpring.HardwareKeyOptions.HardwareKeyOptions |
( |
string |
targetSerial, |
|
|
string |
pin |
|
) |
| |
Constructor for the HardwareKeyOptions class.
- Parameters
-
| targetSerial | Targeted hardware key serial number. Get list of available hardware keys by calling HardwareKeyOptions.ListAvailableKeys() static method. |
| pin | UTF-8 PIN required to access the PIV functions on the target YubiKey. |
- Exceptions
-
◆ ListAvailableKeys()
| static List< string > LicenseSpring.HardwareKeyOptions.ListAvailableKeys |
( |
| ) |
|
|
static |
Lists the serial numbers of all connected YubiKeys with PIV support.
- Returns
- An array of unique YubiKey serial numbers. Returns an empty array if no devices are found or an error occurs.
The documentation for this class was generated from the following file: