It is necessary that a browser implement security policies to keep applets from compromising system security. The implementation of the security policies differs from browser to browser. A SecurityManager object on a Web browser is used to implement its security policies. Whenever a SecurityManager detects a violation, it throws a SecurityException. An applet can catch this SecurityException and react according to the exception. The following tasks CANNOT be performed by an applet:
- Load libraries or define native methods.
- Ordinarily read or write files on the host that is executing it.
- Make network connections except to the host that it came from.
- Start any program on the host that is executing it.
- Read certain system properties.
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.