New York City Public Advocate Letitia James has secured the Democratic nomination to become the state’s next attorney general.

The Associated Press called the race for James at 10:30 Thursday night, and she made a victory speech after 11 p.m.