开发者

What Applets Can and Cannot Do

开发者 https://www.devze.com 2023-03-22 11:05 出处:网络
I\'m going to develope some Applets, And I was wo开发者_JAVA技巧ndering What an Applet can and cannot do.

I'm going to develope some Applets, And I was wo开发者_JAVA技巧ndering What an Applet can and cannot do.

I know that an Applet can't write in the Registry or Windows folders.

Do you know other things ?

Thanks


Official docs http://download.oracle.com/javase/tutorial/deployment/applet/security.html

Much of it depends on whether you signed it or not.

There is one omission i know of in that....

Java AWT Robots are tricky since they give keyboard/mouse access to the applet. You can do it, but trust from the user alone doesnt cut it. In this case you need to set your own custom security manager to grant permission to create a Robot

Edited for correctness based on comments, thanks guys


Actually a signed applet can access the Windows registry through JNI calls.

For more info on the applet capabilities get a look at http://en.wikipedia.org/wiki/Java_applet

0

精彩评论

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

关注公众号