The Örebro District Court also ordered the two men to pay 150,000 kronor ($19,500) in damages to the boy.
The incident took place in connection with a small party on the night of March 20th of this year.
The 17-year-old victim, who was drunk and passed out in a bed at the time of the attack, was handcuffed to the bed frame by a third man who then left the room, according to the Aftonbladet newspaper.
Later, the two men entered the room and proceeded to rape the boy with various foreign objects while he slept.
He awoke in a great deal of pain and with severe injuries to his rectum.
The court ruled that the men exhibited extreme disregard for the 17-year-old’s helpless condition when the sexually molested him. The severity of the attack warranted a conviction for aggravated rape, according to the court.
The man who initially fastened the boy to the bed with handcuffs was also sentenced to 75 hours of community service for aggravated assault.