I think that the man was probably a little bit awquard but didn’t have any bad intentions. One shouldn’t be so harsh in judging him. His behavior is rather paternalistic. Since the young woman cited his own papers he felt that there was some kind of connection between them and forgot that the woman comes from a country where people do not easily touch other people.
Cultures are different. In France young people make a bise (a kiss on the cheek) to someone who is introduced to them for the first time, in some places even three time!
Japanese do not mind to show themselves naked to strangers in an Onsen (public bath). That behavior is strange to me. So behavior changes from one place to another.
Maybe if you mentioned the nationality of the man we could understand better.
From your surprised reaction he understood that you do not like this kind of familiar behavior and will not do it again.