开发者

Java Applet network URL connection username and password visible in Java Console

开发者 https://www.devze.com 2023-04-02 05:29 出处:网络
I have an applet that makes a connection to a protected URL for example: URL = http://user:password@x.y.z/Name/Page.jsp

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消