The term masochism refers to taking pleasure from being inflicted pain and humiliation.
Sexual masochism is classified in DSM-IV-TR as a sexual disorder, and is described achiving sexual excitement from fantasies, urges, or behaviors involving being beaten, humiliated, bound or tortured.
See: DSM-IV-TR
ICD-10