Java : Avoid Unauthorized File Downloading, Use of Token, Download File Servlet
Hello, I would like to expose a home-made solution in order to avoid the unauthorized file downloading via the generation and use of unique token (PART I). The second part (PART II) contains an example of download file servlet allowing several methods of writing file's content to client.   PART I Here, a singleton named AntiDownloadSingleton used on server side to: generate an ...more»