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

前端 未结 2 1319
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:52

    Use an appropriate subclass of java.security.SecureClassLoader to assign an appropriate ProtectionDomain to the loaded classes. Of course, making sure that these classes are to be trusted by some mechanism (e.g. signed with a certificate you trust for such purposes).

提交回复
热议问题