Table of Contents

Class GetSerialNumberResponse

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

The response to the GetSerialNumberCommand command, containing the YubiKey's serial number.

public class GetSerialNumberResponse : OtpResponse, IYubiKeyResponseWithData<int>, IYubiKeyResponse
Inheritance
object
GetSerialNumberResponse
Implements
Inherited Members

Constructors

GetSerialNumberResponse(ResponseApdu)

Constructs a GetSerialNumberResponse based on a ResponseApdu received from the YubiKey.

public GetSerialNumberResponse(ResponseApdu responseApdu)

Parameters

responseApdu ResponseApdu

The object containing the response APDU returned by the YubiKey.

Methods

GetData()

Gets the serial number.

public int GetData()

Returns

int

The data in the ResponseAPDU, presented as an int.

Exceptions

InvalidOperationException

Thrown when Status is not Success.

MalformedYubiKeyResponseException

Thrown when the data received from the YubiKey does not match the expectations of the parser.