You're required to give name, rank, and service number. As soon as McCain gave that, they knew who he was. Dude came out of the camps a physical wreck, never made a propaganda video, etc..
The man served honorably regardless of good a pilot he was.
That being said, a President has more authority in foreign affairs than anywhere else. There truly isn't much McCain can/will do about Trump and Putin.