开发者

What Applets 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜