ThrowIfUnsupportedAlgorithm Method
ThrowIfUnsupportedAlgorithm(IYubiKeyDevice, PivAlgorithm)
Throws a System.NotSupportedException if the specified PivAlgorithm is not supported by the provided IYubiKeyDevice.
C#
public static void ThrowIfUnsupportedAlgorithm(this IYubiKeyDevice device, PivAlgorithm algorithm)
Parameters
Type | Name | Description |
---|---|---|
IYubiKeyDevice | device | The YubiKey device to check for algorithm support. |
PivAlgorithm | algorithm | The PIV algorithm to check. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown if the specified |