Table of Contents

Class GetPagedDeviceInfoResponse

Namespace
Yubico.YubiKey.Management.Commands
Assembly
Yubico.YubiKey.dll

The response to the Yubico.YubiKey.Management.Commands.GetDeviceInfoCommand command, containing the YubiKey's device configuration details.

public class GetPagedDeviceInfoResponse : YubiKeyResponse, IYubiKeyResponseWithData<Dictionary<int, ReadOnlyMemory<byte>>>, IYubiKeyResponse
Inheritance
object
GetPagedDeviceInfoResponse
Implements
IYubiKeyResponseWithData<Dictionary<int, ReadOnlyMemory<byte>>>
Inherited Members

Constructors

GetPagedDeviceInfoResponse(ResponseApdu)

Constructs a GetPagedDeviceInfoResponse instance based on a ResponseApdu received from the YubiKey.

public GetPagedDeviceInfoResponse(ResponseApdu responseApdu)

Parameters

responseApdu ResponseApdu

The ResponseApdu returned by the YubiKey.

Methods

GetData()

Retrieves and converts the response data from an APDU response into a dictionary of TLV tags and their corresponding values.

public Dictionary<int, ReadOnlyMemory<byte>> GetData()

Returns

Dictionary<int, ReadOnlyMemory<byte>>

A dictionary mapping integer tags to their corresponding values as byte arrays.

Exceptions

InvalidOperationException

Thrown when the response status is not successful.

MalformedYubiKeyResponseException

Thrown when the APDU data length exceeds expected bounds or if the data conversion fails.