Class PivSessionExtensions
This class provides extension methods for the PivSession class.
public static class PivSessionExtensions
- Inheritance
-
objectPivSessionExtensions
Methods
ThrowIfUnsupportedAlgorithm(IYubiKeyDevice, PivAlgorithm)
Throws a System.NotSupportedException if the specified PivAlgorithm is not supported by the provided IYubiKeyDevice.
public static void ThrowIfUnsupportedAlgorithm(this IYubiKeyDevice device, PivAlgorithm algorithm)
Parameters
device
IYubiKeyDeviceThe YubiKey device to check for algorithm support.
algorithm
PivAlgorithmThe PIV algorithm to check.
Exceptions
- NotSupportedException
Thrown if the specified
algorithm
is not supported by thedevice
.