The age of consent was set at 16 years the same as for heterosexual sex since 4 september 2007 two out of the three territories of new zealand niue and tokelau legalized homosexuality with an equal age of consent as well by the niue amendment act 2007 cook islands meanwhile still has a sodomy law on the books crimes act 1969 s153 and a155.