[doc] [WS] Fix JavaWS example to use secure defaults.

Forward port of https://github.com/playframework/playframework/pull/3450 to master.