Outside court, Edward Devenney's solicitor Richard Cannon read a statement on behalf of his client, which said:
I am deeply sorry for the hurt and shame that I have brought on my family and loved ones.
Prior to these events I gave the Royal Navy 11 and a half years of service and I deeply regret my actions and the effect they have had on the Submarine Service and colleagues.
A submariner has been jailed for eight years for trying to disclose the secret movements of British nuclear submarines to "Russian spies".
Submariner Edward Devenney has admitted collecting top secret naval codes before meeting two men he believed were Russian spies