Show / Hide Table of Contents

ApplicationSession Constructor

ApplicationSession(ILogger, IYubiKeyDevice, YubiKeyApplication, ScpKeyParameters?)

Initializes a new instance of the ApplicationSession class with logging, YubiKey device, application, and optional SCP key parameters.

C#
protected ApplicationSession(ILogger logger, IYubiKeyDevice device, YubiKeyApplication application, ScpKeyParameters? keyParameters)

Parameters

Type Name Description
ILogger logger

The logger instance used for logging information.

IYubiKeyDevice device

The YubiKey device to establish a session with.

YubiKeyApplication application

The specific YubiKey application to connect to.

ScpKeyParameters keyParameters

The optional parameters for an SCP connection.

Exceptions

Type Condition
ArgumentNullException

Thrown when the device is null.

InvalidOperationException

Thrown when the Yubikey does not support the requested SCP connection.

In this article
Back to top Generated by DocFX