A retired Russian naval officer in St. Petersburg is on trial on charges of spying for Ukraine.

The St. Petersburg city prosecutor’s office said on April 13 that retired Captain Vladislav Nikolsky, 69, is accused of giving unidentified Ukrainians access to material relating to Russian military vessels -- some of it classified.

Investigators said he did so by posting documents online and giving the Ukrainians login IDs and passwords needed to gain access.

They said some of the material posted by Nikolsky while he was employed by the Scientific Research Institute of Ship and Weaponry Production of Russia's Armed Forces and Fleet in 2011 was classified.

Nikolsky faces up to 20 y retired Russian naval officer in St. Petersburg is on trial on charges of spying for Ukraine.

The Stears in jail if convicted.

With reporting by fontanka.ru