Java Applet network URL connection username and password visible in Java Console
I have an applet that makes a connection to a protected URL for example: URL = http://user:password@x.y.z/Name/Page.jsp
When I enable the JAVA Con开发者_开发技巧sole and set the trace level to "5" I can see that a network connection is made and the username and password is revealed.
How do prevent the console to print the URL or protect my use
Don't put sensitive data into Jars. If you do, the motivated end user can hack it, with or without the console.
精彩评论