Impact of System.setSecurityManager(null)

前端 未结 2 2026
自闭症患者
自闭症患者 2021-01-16 04:38

I was facing some issue in Applet. Here is the links for that issue.

java.security.AccessControlException: access denied ("java.security.SecurityPermission&quo

2条回答
  •  一个人的身影
    2021-01-16 05:17

    Clearing the security manager in an applet is a really bad idea. If the applet has that permission, then it can do anything as the local user anyway. However, once you clear the security manager that becomes true of all code running in that process, including unsigned applets from other sites. Any applet (signed with a valid certificate) that clears the security manager should be blacklisted.

提交回复
热议问题