Tulisa Contostavlos has said ex-boyfriend Justin Edwards had “messed with the wrong woman” after she won an apology from him over a sex tape which appeared on the internet.

The singer and X Factor judge – who turns 24 tomorrow – was at London’s High Court to accept the “sincere apologies” from rap artist Edwards, who initially denied being responsible for the tape appearing online.

Her solicitor, Jonathan Coad, told Mr Justice Tugendhat that the invasion of Tulisa’s privacy “was of the most severe kind imaginable”.

“She has been particularly distressed by the wholly untrue allegation made by some that she was in some way complicit with the release of the footage. She was not, as this statement makes clear.”

Mr Coad said that Edwards, who was not present but accepted all that was said on behalf of Tulisa, had also agreed not to speak further in public about their relationship.

Outside court, Tulisa said: “I am relieved that this is finally over. It has been a very testing few months and this was not a case I ever wanted to go through. Justin Edwards’ actions were to spite me, make money and ruin my career. He has succeeded in none of these things.

“Today the truth has prevailed. After months of lying to the public and lying in court, Justin has finally admitted to being guilty and I hope justice is served. I would now like to draw a line under this and put it in the past.

“I also would like to thank from the bottom of my heart the fans that stood by me. I’m especially grateful for all the support I have received from the public, my friends, family and team. With that support and my determination I have won this battle. Justin messed with the wrong woman.”

Tulisa, who shot to fame as a member of hip hop group N-Dubz and landed a high-profile role as a judge on The X Factor, had an on-off relationship with Edwards which ended in late 2009.

Mr Coad said the star accepted that Edwards genuinely regretted what he had done, but remained determined to continue her claim against the others involved in exploiting her privacy.