Exhibitionism

Extravagant behaviour that is intended to attract attention to oneself characterized by the compulsion to display one's genitals or having sex in public.