Kenya anti-terror law challenged in Nairobi court
Kenya's opposition has mounted a legal challenge against a tough new anti-terrorism law.
It asked the High Court to annul the law, saying it risked turning Kenya into a dictatorship.
The court refused to immediately suspend the legislation, but asked both sides to return to court on Wednesday.
The government says its security and intelligence agencies need more powers to tackle militant Islamists threatening Kenya's security.
In the past month, al-Shabab, a militant group linked to al-Qaeda, has killed 64 people in two attacks in Kenya's north-eastern region of Mandera.
Last year, 67 people were killed when it laid siege to the upmarket Westgate shopping centre in the capital, Nairobi.
Kenya's parliament passed the law during a chaotic session on Thursday, which saw brawls between opposition and governing coalition MPs.
James Orengo, a lawyer for the opposition Coalition for the Restoration of Democracy (Cord) party, told the court the legislation had more than 10 clauses which violated the basic liberties of Kenyans, and was "inconsistent" with the constitution.
- Ban the publishing or broadcasting of "insulting, threatening, or inciting material", images of dead or injured people "likely to cause fear" and information that undermines security operations, including on social media. Punishable by a fine of $55,000, a three-year jail term or both
- Limits number of refugees and asylum seekers to 150,000 - those applying for refugee status are not allowed to leave camps
- Sets up National Counter-Terrorism Centre to co-ordinate security agencies' efforts
- Public officials found guilty issuing irregular IDs or allowing irregular entry into the country liable to a minimum of 15 years in jail
- Person in charge of a premises where weapons recovered may face up to 30 years in prison
- Person promoting ideology based on violence to advance political, religious or social change may face up to 14 years in jail
The BBC's Abdullahi Abdi in Nairobi says the case is likely to go to a full hearing after Judge Isaac Lenaola ordered both opposition and government representatives to appear before him on Wednesday.
President Uhuru Kenyatta has approved the law, but it needs to be formally published before it comes into force, he says.
Cord leader Raila Odinga said his supporters would take to the streets if the party's legal challenge failed.
"People are afraid, very afraid of the new laws, and it is easy to understand the fear. This is how dictatorship and collapse all begin," he said outside court.
Al-Shabab is fighting to create an Islamic state in Somalia, but it has been increasingly targeting neighbouring Kenya.
The militants are demanding the withdrawal of Kenyan troops in Somalia.
Kenya sent soldiers into Somalia in 2011 to attack militants it accused of being behind the kidnapping of foreigners on Kenyan soil.
Correction 5 January: We have amended this story to remove reference to a clause allowing terror suspects to be detained for a year, as this was altered before the bill was passed by parliament.