Class GetPagedDeviceInfoResponse
The response to the Yubico.YubiKey.U2f.Commands.GetDeviceInfoCommand command, containing the YubiKey's device configuration details.
public class GetPagedDeviceInfoResponse : YubiKeyResponse, IYubiKeyResponseWithData<Dictionary<int, ReadOnlyMemory<byte>>>, IYubiKeyResponse
- Inheritance
-
objectGetPagedDeviceInfoResponse
- Implements
- Inherited Members
Constructors
GetPagedDeviceInfoResponse(ResponseApdu)
Constructs a GetPagedDeviceInfoResponse instance based on a ResponseApdu received from the YubiKey.
public GetPagedDeviceInfoResponse(ResponseApdu responseApdu)
Parameters
responseApdu
ResponseApduThe 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.