Show / Hide Table of Contents

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
NotSupportedException

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

In this article
Back to top Generated by DocFX