Show / Hide Table of Contents

WriteScancodeMap Class

Namespace: Yubico.YubiKey.Otp.Commands Assembly: Yubico.YubiKey.dll

Updates the scancode mapping used for Yubico OTP and the Yubico OTP based password generator.

C#
public class WriteScancodeMap : IYubiKeyCommand<ReadStatusResponse>
Inheritance object WriteScancodeMap
Implements
IYubiKeyCommand<ReadStatusResponse>

Constructors

Name Description
WriteScancodeMap()

Initializes a new instance of the WriteScancodeMap class. The scancode map will be initialized to the default, until it is overridden by the caller.

WriteScancodeMap(ReadOnlyMemory<byte>)

Initializing a new instance of the WriteScancodeMap class with a custom scancode map.

Properties

Name Description
Application

Gets the YubiKeyApplication (e.g. PIV, OATH, etc.) to which this command applies.

DefaultScancodeMap

The default HID usage map.

ScancodeMap

The scancode map to be written when the command is sent to the YubiKey.

Methods

Name Description
CreateCommandApdu()

Creates a well-formed CommandApdu to send to the YubiKey.

CreateResponseForApdu(ResponseApdu)

Creates the corresponding IYubiKeyResponse implementation for the current command.

In this article
Back to top Generated by DocFX