Table of Contents

Class EchoResponse

Namespace
Yubico.YubiKey.U2f.Commands
Assembly
Yubico.YubiKey.dll

The response to the Echo Command.

public sealed class EchoResponse : U2fResponse, IYubiKeyResponseWithData<ReadOnlyMemory<byte>>, IYubiKeyResponse
Inheritance
object
EchoResponse
Implements
IYubiKeyResponseWithData<ReadOnlyMemory<byte>>
Inherited Members

Remarks

This is the partner response class to EchoCommand.

Constructors

EchoResponse(ResponseApdu)

Constructs an EchoResponse from the given ResponseApdu.

public EchoResponse(ResponseApdu responseApdu)

Parameters

responseApdu ResponseApdu

The response to a EchoCommand.

Exceptions

ArgumentNullException

Thrown when responseApdu is null.

Methods

GetData()

Gets the echoed data from the response.

public ReadOnlyMemory<byte> GetData()

Returns

ReadOnlyMemory<byte>

The data in the response APDU, as a byte array.

Remarks

If the status of the response is not 'Success', this method will throw an exception.