The following information was taken directly from the New York state legislation website at http://public.leginfo.state.ny.us/

&#167 130.05 Sex offenses; lack of consent.
1. Whether or not specifically stated, it is an element of every offense defined in this article that the sexual act was committed without consent of the victim.
2. Lack of consent results from:
(a) Forcible compulsion; or
(b) Incapacity to consent; or
(c) Where the offense charged is sexual abuse or forcible touching, any circumstances, in addition to forcible compulsion or incapacity to consent, in which the victim does not expressly or impliedly acquiesce in the actor’s conduct; or
(d) Where the offense charged is rape in the third degree as defined in subdivision three of section 130.25, or criminal sexual act in the third degree as defined in subdivision three of section 130.40, in addition to forcible compulsion, circumstances under which, at the time of the act of intercourse, oral sexual conduct or anal sexual conduct,
the victim clearly expressed that he or she did not consent to engage in such act, and a reasonable person in the actor’s situation would have understood such person’s words and acts as an expression of lack of consent to such act under all the circumstances.
3. A person is deemed incapable of consent when he or she is:
(a) less than seventeen years old; or
(b) mentally disabled; or
(c) mentally incapacitated; or
(d) physically helpless; or
(e) committed to the care and custody of the state department of correctional services or a hospital, as such term is defined in subdivision two of section four hundred of the correction law, and the actor is an employee, not married to such person, who knows or reasonably should know that such person is committed to the care and custody of such department or hospital. For purposes of this paragraph, “employee” means (i) an employee of the state department of correctional services who performs professional duties in a state correctional facility consisting of providing custody, medical or mental health services, counseling services, educational programs, or vocational training for inmates;
(ii) an employee of the division of parole who performs professional duties in a state correctional facility and who provides institutional parole services pursuant to section two hundred fifty-nine-e of the executive law; or
(iii) an employee of the office of mental health who performs professional duties in a state correctional facility or hospital, as such term is defined in subdivision two of section four hundred of the correction law, consisting of providing custody, or medical or mental health services for such inmates; or
(f) committed to the care and custody of a local correctional facility, as such term is defined in subdivision two of section forty of the correction law, and the actor is an employee, not married to such person, who knows or reasonably should know that such person is committed to the care and custody of such facility. For purposes of this
paragraph, “employee” means an employee of the local correctional facility where the person is committed who performs professional duties consisting of providing custody, medical or mental health services, counseling services, educational services, or vocational training for inmates; or
(g) committed to or placed with the office of children and family services and in residential care, and the actor is an employee, not married to such person, who knows or reasonably should know that such person is committed to or placed with such office of children and family services and in residential care. For purposes of this paragraph,
“employee” means an employee of the office of children and family services or of a residential facility who performs duties consisting of providing custody, medical or mental health services, counseling services, educational services, or vocational training for persons committed to or placed with the office of children and family services and in residential care; or
(h) a client or patient and the actor is a health care provider or mental health care provider charged with rape in the third degree as defined in section 130.25, criminal sexual act in the third degree as defined in section 130.40, aggravated sexual abuse in the fourth degree as defined in section 130.65-a, or sexual abuse in the third degree as
defined in section 130.55, and the act of sexual conduct occurs during a treatment session, consultation, interview, or examination.

&#167 130.10 Sex offenses; limitation; defenses.
1. In any prosecution under this article in which the victim’s lack of consent is based solely upon his or her incapacity to consent because he or she was mentally disabled, mentally incapacitated or physically helpless, it is an affirmative defense that the defendant, at the time he or she engaged in the conduct constituting the offense, did not know of the facts or conditions responsible for such incapacity to consent.
2. Conduct performed for a valid medical or mental health care purpose shall not constitute a violation of any section of this article in which incapacity to consent is based on the circumstances set forth in paragraph (h) of subdivision three of section 130.05 of this article.
3. In any prosecution for the crime of rape in the third degree as defined in section 130.25, criminal sexual act in the third degree as defined in section 130.40, aggravated sexual abuse in the fourth degree as defined in section 130.65-a, or sexual abuse in the third degree as defined in section 130.55 in which incapacity to consent is based on the
circumstances set forth in paragraph (h) of subdivision three of section 130.05 of this article it shall be an affirmative defense that the client or patient consented to such conduct charged after having been expressly advised by the health care or mental health care provider that such conduct was not performed for a valid medical purpose.
4. In any prosecution under this article in which the victim’s lack of consent is based solely on his or her incapacity to consent because he or she was less than seventeen years old, mentally disabled, or a client or patient and the actor is a health care provider, it shall be a defense that the defendant was married to the victim as defined in subdivision four of section 130.00 of this article.

&#167 130.16 Sex offenses; corroboration.
A person shall not be convicted of any offense defined in this article of which lack of consent is an element but results solely from incapacity to consent because of the victim’s mental defect, or mental incapacity, or an attempt to commit the same, solely on the testimony of the victim, unsupported by other evidence tending to:
(a) Establish that an attempt was made to engage the victim in sexual intercourse, oral sexual conduct, anal sexual conduct, or sexual contact, as the case may be, at the time of the occurrence; and
(b) Connect the defendant with the commission of the offense or attempted offense.

&#167 130.20 Sexual misconduct.
A person is guilty of sexual misconduct when:
1. He or she engages in sexual intercourse with another person without such person’s consent; or
2. He or she engages in oral sexual conduct or anal sexual conduct with another person without such person’s consent; or
3. He or she engages in sexual conduct with an animal or a dead human body.
Sexual misconduct is a class A misdemeanor.

&#167 130.30 Rape in the second degree.
A person is guilty of rape in the second degree when:
1. being eighteen years old or more, he or she engages in sexual intercourse with another person less than fifteen years old; or
2. he or she engages in sexual intercourse with another person who is incapable of consent by reason of being mentally disabled or mentally incapacitated.
It shall be an affirmative defense to the crime of rape in the second degree as defined in subdivision one of this section that the defendant was less than four years older than the victim at the time of the act.
Rape in the second degree is a class D felony.

&#167 130.35 Rape in the first degree.
A person is guilty of rape in the first degree when he or she engages in sexual intercourse with another person:
1. By forcible compulsion; or
2. Who is incapable of consent by reason of being physically helpless; or
3. Who is less than eleven years old; or
4. Who is less than thirteen years old and the actor is eighteen years old or more.
Rape in the first degree is a class B felony.

&#167 130.40 Criminal sexual act in the third degree.
A person is guilty of criminal sexual act in the third degree when:
1. He or she engages in oral sexual conduct or anal sexual conduct with a person who is incapable of consent by reason of some factor other than being less than seventeen years old;
2. Being twenty-one years old or more, he or she engages in oral sexual conduct or anal sexual conduct with a person less than seventeen years old; or
3. He or she engages in oral sexual conduct or anal sexual conduct with another person without such person’s consent where such lack of consent is by reason of some factor other than incapacity to consent.
Criminal sexual act in the third degree is a class E felony.

&#167 130.45 Criminal sexual act in the second degree.
A person is guilty of criminal sexual act in the second degree when:
1. being eighteen years old or more, he or she engages in oral sexual conduct or anal sexual conduct with another person less than fifteen years old; or
2. he or she engages in oral sexual conduct or anal sexual conduct with another person who is incapable of consent by reason of being mentally disabled or mentally incapacitated. It shall be an affirmative defense to the crime of criminal sexual act in the second degree as defined in subdivision one of this section that the defendant was less than four years older than the victim at the time of the act.
Criminal sexual act in the second degree is a class D felony.

&#167 130.50 Criminal sexual act in the first degree.
A person is guilty of criminal sexual act in the first degree when he or she engages in oral sexual conduct or anal sexual conduct with another person:
1. By forcible compulsion; or
2. Who is incapable of consent by reason of being physically helpless; or
3. Who is less than eleven years old; or
4. Who is less than thirteen years old and the actor is eighteen years old or more.
Criminal sexual act in the first degree is a class B felony.

&#167 130.55 Sexual abuse in the third degree.
A person is guilty of sexual abuse in the third degree when he or she subjects another person to sexual contact without the latter’s consent; except that in any prosecution under this section, it is an affirmative
defense that (a) such other person’s lack of consent was due solely to incapacity to consent by reason of being less than seventeen years old, and (b) such other person was more than fourteen years old, and (c) the defendant was less than five years older than such other person.
Sexual abuse in the third degree is a class B misdemeanor.

&#167 130.60 Sexual abuse in the second degree.
A person is guilty of sexual abuse in the second degree when he or she subjects another person to sexual contact and when such other person is:
1. Incapable of consent by reason of some factor other than being less
than seventeen years old; or
2. Less than fourteen years old.
Sexual abuse in the second degree is a class A misdemeanor.

&#167 130.65-a Aggravated sexual abuse in the fourth degree.
1. A person is guilty of aggravated sexual abuse in the fourth degree when:
(a) He or she inserts a foreign object in the vagina, urethra, penis or rectum of another person and the other person is incapable of consent by reason of some factor other than being less than seventeen years old;
or
(b) He or she inserts a finger in the vagina, urethra, penis or rectum of another person causing physical injury to such person and such person is incapable of consent by reason of some factor other than being less than seventeen years old.
2. Conduct performed for a valid medical purpose does not violate the provisions of this section.
Aggravated sexual abuse in the fourth degree is a class E felony.