Table of Contents

Class GetProtocolVersionResponse

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

The response containing the U2F protocol version implemented by the application.

public class GetProtocolVersionResponse : U2fResponse, IYubiKeyResponseWithData<string>, IYubiKeyResponse
Inheritance
object
GetProtocolVersionResponse
Implements
Inherited Members

Remarks

This is the partner Response class to GetProtocolVersionCommand. The data is returned as a string, describing the protocol version of the U2F application.

Constructors

GetProtocolVersionResponse(ResponseApdu)

Constructs a GetProtocolVersionResponse object from the given ResponseApdu.

public GetProtocolVersionResponse(ResponseApdu responseApdu)

Parameters

responseApdu ResponseApdu

The object containing the response APDU returned by the YubiKey.

Exceptions

ArgumentNullException

Thrown when responseApdu is null.

Methods

GetData()

Gets the U2F protocol version string from the response.

public string GetData()

Returns

string

The data in the response APDU, which is encoded as an ASCII string. This data describes the U2F protocol version.

Remarks

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

Exceptions

InvalidOperationException

Thrown when Status is not Success.