Table of Contents

Class PivSessionExtensions

Namespace
Yubico.YubiKey.Piv
Assembly
Yubico.YubiKey.dll

This class provides extension methods for the PivSession class.

public static class PivSessionExtensions
Inheritance
object
PivSessionExtensions

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 IYubiKeyDevice

The YubiKey device to check for algorithm support.

algorithm PivAlgorithm

The PIV algorithm to check.

Exceptions

NotSupportedException

Thrown if the specified algorithm is not supported by the device.