He may have been an officer, but he is certainly no gentleman. Even if you were running around in a loin cloth there is no excuse for him to speak to you that way. I am surprised that you allowed him to do so.