Show / Hide Table of Contents

OtpSession Constructor

OtpSession(IYubiKeyDevice, ScpKeyParameters?)

Constructs a OtpSession instance for high-level OTP operations.

C#
public OtpSession(IYubiKeyDevice yubiKey, ScpKeyParameters? keyParameters = null)

Parameters

Type Name Description
IYubiKeyDevice yubiKey

An instance of a class that implements IYubiKeyDevice.

ScpKeyParameters keyParameters

An instance of Scp03KeyParameters containing the parameters for the SCP03 key. If null, the default parameters will be used.

Remarks

This constructor should be used to obtain an instance of this class for performing operations on the YubiKey OTP application. The instance of IYubiKeyDevice passed in should be a connected YubiKey.

In this article
Back to top Generated by DocFX