A Brooklyn man has been sentenced to eight years in prison after he attacked two NYPD officers and later bragged in a phone call from Rikers that he "whipped" them.

Prosecutors argued that 34-year-old Jonathan Truluck and his brother picked a fight with two officers patrolling Marcy Avenue in Bed-Stuy in June of 2012. According to trial testimony, when Officer Shanell Parker called for backup to deal with the unruly men, Truluck punched her and her partner, Officer Michael Sommer, in their faces. Truluck then "whipped Sommer with a belt that had a metal padlock attached to it."

Parker suffered a broken finger and swelling to her face, while Sommer's head required four staples. Another officer broke Truluck's ankle while responding to the brawl.

During the trial, prosecutors played a recording of a call Truluck made from Rikers, noting that the blood of one of the officers had splattered on him after "whaling on" them.

Brooklyn Supreme Court Justice Vincent DelGiudice sentenced Truluck to three years in prison for assaulting Parker, and five for assaulting Sommer.

“Today’s sentence sends a message that attacks on our police officers who put their lives on the line to keep us all safe will simply not be tolerated," District Attorney Ken Thompson says in a release, adding, "This case is also a reminder that ordinary street encounters can take a turn for the worse within seconds.”