of course the ultimate embarrassment had been the widely publicized trial of fbi spy robert hanssen , who , in addition to being a prominent member of opus dei , had turned out to be a sexual deviant , his trial uncovering evidence that he had rigged hidden video cameras in his own bedroom so his friends could watch him having sex with his wife .