Table of Contents

Interface IYubiKeyConnection

Namespace
Yubico.YubiKey
Assembly
Yubico.YubiKey.dll

Represents a connection to a YubiKey device, enabling the sending of commands and retrieval of responses.

public interface IYubiKeyConnection

Properties

SelectApplicationData

An object representing the response received from the YubiKey after selecting the application.

ISelectApplicationData? SelectApplicationData { get; set; }

Property Value

ISelectApplicationData

Methods

SendCommand<TResponse>(IYubiKeyCommand<TResponse>)

Sends a command to the YubiKey device and returns the response.

TResponse SendCommand<TResponse>(IYubiKeyCommand<TResponse> yubiKeyCommand) where TResponse : IYubiKeyResponse

Parameters

yubiKeyCommand IYubiKeyCommand<TResponse>

The command to be sent to the YubiKey device.

Returns

TResponse

The response received from the YubiKey device.

Type Parameters

TResponse

The type of response expected from the YubiKey device.