Java Security Assignment Redo