A former National Security Agency contractor was sentenced in Maryland to nine years in prison on Friday for stealing huge amounts of classified material from U.S. intelligence agencies over two decades though officials never found proof he shared it with anyone.