Java Class now calls the authenticate script.