public void RemoveKey(ISshKey key) { if (IsLocked) { throw new AgentLockedException(); } if (mKeyList.Remove(key)) { FireKeyRemoved(key); } }