Class GetProtocolVersionResponse
The response containing the U2F protocol version implemented by the application.
public class GetProtocolVersionResponse : U2fResponse, IYubiKeyResponseWithData<string>, IYubiKeyResponse
- Inheritance
-
objectGetProtocolVersionResponse
- Implements
-
IYubiKeyResponseWithData<string>
- 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
ResponseApduThe object containing the response APDU returned by the YubiKey.
Exceptions
- ArgumentNullException
Thrown when
responseApdu
isnull
.
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.