Class RegisterResponse
The response to the U2F Register command.
public sealed class RegisterResponse : U2fResponse, IYubiKeyResponseWithData<RegistrationData>, IYubiKeyResponse
- Inheritance
-
objectRegisterResponse
- Implements
- Inherited Members
Remarks
This is the partner response class to RegisterCommand.
Registration on most devices will first fail with ConditionsNotSatisfied and then the device will begin waiting for a touch to verify user presence. See RegisterCommand for more details.
Constructors
RegisterResponse(ResponseApdu)
Constructs a RegisterResponse from the given ResponseApdu.
public RegisterResponse(ResponseApdu responseApdu)
Parameters
responseApduResponseApduThe response to a RegisterCommand.
Methods
GetData()
Gets the registration data from the response.
public RegistrationData GetData()
Returns
- RegistrationData
The data in the response APDU, presented as a RegistrationData object.
Remarks
If the status of the response is not 'Success', this method will fail. If the status of the response is ConditionsNotSatisfied then clients should retry the command until it succeeds (when user presence is confirmed, generally through touch).
Throws a System.ArgumentException in the event of an error parsing the device response.