Self Signed Applet Can it access Local File Systems

前端 未结 2 1754
星月不相逢
星月不相逢 2021-01-16 03:59

Hi I have created a Self Signed Applet , but not able to access local files system .What have i to do ?

2条回答
  •  星月不相逢
    2021-01-16 04:20

    you need to wrap your IO code inside PrivilegedAction.

    Generally, you need to sign your applet with your test certificate, the user will see a warning and will have to accept the certificate when it loads the applet.

    then you need to wrap your code inside a PriviligedAction. see this for some examples.

提交回复
热议问题