3 Replies Latest reply: Oct 7, 2009 12:41 AM by 843811 RSS

    signed applet is not granted its permission

    843811
      hi
      i have an applet thats calling a method from another class from the same signed jar file.
      granting all permissions to everything it works, but as soon as i use "signedBy" i cant read or write. what am i doing wrong?

      thanks
      jo
        • 1. Re: signed applet is not granted its permission
          843811
          Signing applets:
          http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
          second post and reply 18 for the java class file using doprivileged
          http://forum.java.sun.com/thread.jsp?forum=63&thread=409341
          4th post explaining how to set up your own policy with your own keystore

          Still problems?
          A Full trace might help us out:
          http://forum.java.sun.com/thread.jspa?threadID=656028
          • 2. Re: signed applet is not granted its permission
            843811
            i solved the problem. the method is actually called by javascript and thus is not included in the policy file.
            thanks for your help
            • 3. Re: signed applet is not granted its permission
              843811
              jojola can u please let me know how u solved the problem?
              I have a applet embedded in Jsp file. though i granted the required access rights through policy file using SignedBy, its not working. I had a sample applet embedded in html page. i signed the sample applet jar. When i hit the html page, I can access the local system file without modifying the policy file. But the same is not happening with the actual application am working on inspite of giving permissions using signedby. Is this because the applet is embedded in jsp file??? its is working if i simply give the permission using grant but not working if i use grant signedBy.
              i tried the following but no use.
              keystore "keystorename";
              grant signedBy "signer"
              {
              set of access rights
              };
              please help me out.