A court in Germany has sentenced an asylum seeker from Tajikistan to seven years in prison for membership in the Islamic State (IS) terror and plotting attacks in Albania and Germany.

The Higher Regional Court of Düsseldorf on Tuesday sentenced an asylum seeker from Tajikistan, Ravshan B., to seven years in prison over plans to shoot dead a critic of Islam as part of the IS terror cell.

Summing up the four-month trial, a Düsseldorf court spokesman said the 31-year-old man living in Wuppertal had formed an IS cell with other Tajiks also living in Germany's western Ruhr District, according to Deutsche Welle (DW).

Ravshan B., whose last name has not been disclosed in line with German privacy laws, had later handed a functioning semi-automatic pistol over to another cell member for use in a planned attack that was foiled through police investigations, said the spokesman. 

The court reportedly also found that he with others — motivated by jihadi radicalism —  had planned a contract murder in Albania in 2019 to earn funds for the IS movement.

That attack, however, was not carried out because at the last moment doubts emerged about the identity of the intended victim, described last year by German federal prosecutors as an Albanian businessman.

Four suspected members of the cell were arrested in April 2020.

Wuppertal was where authorities intervened in 2014 when Salafists patrolled streets in orange vests emblazoned with the words "Sharia police."

Prior to Tuesday's sentencing, the accused apologized, saying he was "terribly sorry for everything."

Federal prosecutors had wanted him jailed for 8 1/2 years on the main charges of being a member of a terrorist organization and preparing a grave act of violence endangering the state.

The court also found that Ravshan B. had participated in a transfer of money to Syria.

His defense lawyers did not plead on the length of jailing, but had tried to cast doubt on several key points of the prosecutors' submissions.

DW says the verdict is still subject to appeal, should prosecutors or the defense decide to take the case further to Germany's top BGH criminal court in Karlsruhe.