private void RegisterToServer(Fido2RegistrationResponse fido2RegistrationResponse) { string Tag = "RegisterToServer"; if (!fido2RegistrationResponse.IsSuccess) { log.Error(Tag, GetString(Resource.String.reg_fail), fido2RegistrationResponse); return; } IFidoServer fidoServer = new FidoServerSimulator(); if (fidoServer == null) { log.Error(Tag, GetString(Resource.String.connect_server_err)); return; } ServerAttestationResultRequest request = ServerUtils.ConvertToServerAttestationResultRequest(fido2RegistrationResponse.AuthenticatorAttestationResponse); ServerResponse response = fidoServer.GetAttestationResult(request); if (!ServerStatus.Ok.Equals(response.GetStatus())) { log.Error(Tag, GetString(Resource.String.reg_fail) + response.GetErrorMessage()); return; } GetRegInfo(fidoServer); log.Info(Tag, GetString(Resource.String.reg_success)); }