Trust management and adversary detection for delay tolerant networks