Signed applet loads signed jar-files using URLClassLoader with security issue

前端 未结 2 1339
Happy的楠姐
Happy的楠姐 2021-01-14 12:23

I have a signed applet. To implement some plugin architecture I download and store to disk a JAR file with specific classes.

Then I load these classes with URL

2条回答
  •  死守一世寂寞
    2021-01-14 12:49

    Install a custom security manager that allows code from the right code base (package, whatever..) to perform that action.

    To do that, call System.setSecurityManager(myManager). (As you managed to figure) myManager is an extension of SecurityManager.

    It requires a trusted applet to set a security manager.

提交回复
热议问题