A former garda press officer has applied to the High Court to stop the Garda Commissioner and the Director of Public Prosecutions taking any further disciplinary or criminal proceedings against him.
Superintendent David Taylor claimed evidence has been tampered with and that the investigation has been tainted beyond redemption.
The superintendent's wife has made a complaint to the Garda Ombudsman Commission about the failure to preserve relevant evidence.
Supt Taylor also claimed, in a sworn affidavit, that he was arrested exclusively for the purpose of embarrassing and inflicting pain on him and to hold him up to ridicule and contempt.
He also claimed that during his detention at Balbriggan Garda Station, investigators were tactless, oppressive, heavy handed, unnecessarily autocratic and failed to afford him a reasonable level of courtesy and respect.
The application was made today ex parte in the High Court, meaning only one side was represented.
Senior Counsel Breiffne Gordon told the court it was abundantly clear there was "a certain element of skullduggery taking place".
Mr Justice Seamus Noonan said he wanted to hear what everyone had to say and directed that the Garda Commissioner and the Director of Public Prosecutions be notified of the application.
The case is due back before the High Court in two weeks.
Superintendent David Taylor was a garda press officer for two years before he was transferred to the traffic division in Dublin Castle in June 2014.
He said that in December 2014, a Chief Superintendent Francis Clerkin came into his office in Dublin Castle without notice, told him he was investigating a media leak following the publication of the Logan Report and directed him to surrender his mobile phone.
The Logan Report found information had been disclosed to a journalist about a case where gardaí in Tallaght removed a Roma child from its family.
Supt Taylor said he was issued with a new mobile phone with the same number and the chief superintendent told him then he was not under investigation .
On 19 February 2015 he said the chief superintendent and a Detective Superintendent James McGowan came to his office without notice, on foot of a warrant and searched it, seizing his phone and laptop.
He said he was then informed two days later he was under investigation but claimed there was considerable confusion because he said he was first told it was for a serious breach of discipline, then for a minor breach and then again for a serious breach.
He also said he was subsequently informed by a journalist that he was to be arrested - two months before that occurred and said that he suffered extreme stress and distress, his health deteriorated, he attended a doctor and was certified unfit for work for a time.
He also suffered panic attacks, breathlessness, headaches and feelings of pressure.
Two months later he claimed the chief superintendent informed him he was to be arrested and interviewed under caution.
Having regard to his rank and record of service to the state, this, he claimed in a sworn affidavit, was exclusively for the purpose of embarrassing him, inflicting emotional pain and suffering, exerting additional pressure on him and holding him up to ridicule and contempt.
Supt Taylor also claimed that evidence was tampered or interfered with.
He said three phones tied to his garda number were seized from him and the SIM card subsequently "became live".
The superintendent alleged this phone number attempted to join a private chat group on the Viber messaging platform in which his wife's neighbour was a member.
This he said is a closed group and therefore evidence has become insecure and has been accessed by third parties.
The superintendent said his wife has submitted a complaint, in relation to the failure of the Garda Commissioner to preserve evidence, to the Garda Ombudsman Commission
Supt Taylor said he does not believe the DPP has been advised of these shortcomings, breaches, leaks and interference with evidence but claimed they are an abuse of power or process and that they circumvent his legal and personal rights.
He said the investigation has been tainted beyond redemption and is seeking a high court injunction to restrain the DPP and the Garda Commissioner from taking any further disciplinary or criminal proceedings.
He also wants the Garda Commissioner to report and account to the court for the way the investigation has so far been carried-on and conducted.