Class EchoResponse
The response to the Echo Command.
public sealed class EchoResponse : U2fResponse, IYubiKeyResponseWithData<ReadOnlyMemory<byte>>, IYubiKeyResponse
- Inheritance
-
objectEchoResponse
- Implements
- Inherited Members
Remarks
This is the partner response class to EchoCommand.
Constructors
EchoResponse(ResponseApdu)
Constructs an EchoResponse from the given ResponseApdu.
public EchoResponse(ResponseApdu responseApdu)
Parameters
responseApdu
ResponseApduThe response to a EchoCommand.
Exceptions
- ArgumentNullException
Thrown when
responseApdu
isnull
.
Methods
GetData()
Gets the echoed data from the response.
public ReadOnlyMemory<byte> GetData()
Returns
- ReadOnlyMemory<byte>
The data in the response APDU, as a byte array.
Remarks
If the status of the response is not 'Success', this method will throw an exception.