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
deviceIYubiKeyDeviceThe YubiKey device to check for algorithm support.
algorithmPivAlgorithmThe PIV algorithm to check.
Exceptions
- NotSupportedException
Thrown if the specified
algorithmis not supported by thedevice.