Hi Robert, thanks for getting back, I'm not sure I understand your answer.
I thought, as you wrote previously, if I see this message, it means my applet is not signed. But it is, because I grant it access. And from testing it, I know I can use my applet to write a state file to my local machine and load it back from there. What I want to do is to notify the user on the page, after the dialog interaction "Signed/Unsigned", what it now means for him because it might be that someone does not read the instructions for the website we're building. So a label should appear saying: "You did not accept to use the signed applet. You will not be able to save a state file." that's all.







Am 02.07.12 21:02, schrieb Robert Hanson:
Well, then you don't have the access you think you do. I thought your intent was to let the user know that the applet loaded would not load the file desired. What are you actually trying to do again?

On Sun, Jul 1, 2012 at 12:03 PM, Martin Hediger <[email protected] <mailto:[email protected]>> wrote:

    problem is, using your code sample from the last mail, even when
    using an applet where I grant access to the machine, i get this
    message:

    "2,scriptStatus,0,script 2 started 3,scriptStatus,0,script ERROR:
    java.security.AccessControlException: access denied
    (java.net.SocketPermission 130.225.101.52 <tel:130.225.101.52>:80
    connect,resolve) | ---- | load >> ''(''http://www.google.com'')''
    << 4,scriptStatus,0,Script completed 5,scriptTerminated,1,Jmol
    script terminated successfully 7,scriptTerminated,1,Jmol script
    terminated unsuccessfully: Jmol script terminated
    1,scriptStarted,2,load(''http://www.google.com'')
    6,scriptError,0,Jmol script terminated "










    Am 28.06.12 20:00, schrieb Robert Hanson:
    just look at the return from

     x = load ("http://www.google.com";)

    If it reads:

    java.security.AccessControlException: access denied
    (java.net.SocketPermission www.google.com:80
    <http://www.google.com:80> connect,resolve)

    you don't have the signed applet.

    Bob


    On Thu, Jun 28, 2012 at 6:19 AM, Martin Hediger
    <[email protected] <mailto:[email protected]>> wrote:

        That's a useful information. So the _signedApplet basically
        does not
        tell if the user granted access or not, rather only if the
        applet is
        supposed to be signed.
        I can think of some rather ugly hacks in the domain of user
        interaction
        simulation after the pages loads to see if a "dummy"-state
        can be saved
        and check some kind of server response, but there must be a
        smarter way
        of doing this, i hope.

        Best regards
        Martin






        On 28.06.12 12:54, Rolf Huehne wrote:
        > On 06/28/2012 12:37 PM, Martin Hediger wrote:
        >> ok, that might look useful
        >>
        >> jmolScriptWait('show _signedApplet')
        >> "2,scriptStatus,0,script 2 started
        >> 4,scriptStatus,0,Script completed
        >> 6,scriptStatus,0,Jmol script terminated
        >> 5,scriptTerminated,1,Jmol script terminated successfully
        >> 1,scriptStarted,2,show _signedApplet
        >> 3,scriptEcho,0,_signedapplet = true
        >>
        > I have actually tested this now for Jmol 12.2.2 and the
        result is like I
        > expected:
        >
        > I opened the following URL in the browser
        >
        
(http://www.imb-jena.de/cgi-bin/3d_mapping.pl?CODE=1deh&APPLET=signed&JMOLVERSION=12.2.2
        
<http://www.imb-jena.de/cgi-bin/3d_mapping.pl?CODE=1deh&APPLET=signed&JMOLVERSION=12.2.2>)
        > and clicked onto "cancel" in the security dialog.
        >
        > Afterwards the command "show _signedApplet" provided the result
        > "_signedapplet = true". But if I tried to save the state it
        didn't work,
        > because the signed applet hadn't got the rights of a signed
        applet.
        >
        > Regards,
        > Rolf



        
------------------------------------------------------------------------------
        Live Security Virtual Conference
        Exclusive live event will cover all the ways today's security and
        threat landscape has changed and how IT managers can respond.
        Discussions
        will include endpoint security, mobile security and the
        latest in malware
        threats.
        http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
        _______________________________________________
        Jmol-users mailing list
        [email protected]
        <mailto:[email protected]>
        https://lists.sourceforge.net/lists/listinfo/jmol-users




-- Robert M. Hanson
    Larson-Anderson Professor of Chemistry
    Chair, Chemistry Department
    St. Olaf College
    Northfield, MN
    http://www.stolaf.edu/people/hansonr


    If nature does not answer first what we want,
    it is better to take what answer we get.

    -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900



    
------------------------------------------------------------------------------
    Live Security Virtual Conference
    Exclusive live event will cover all the ways today's security and
    threat landscape has changed and how IT managers can respond. Discussions
    will include endpoint security, mobile security and the latest in malware
    threats.http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


    _______________________________________________
    Jmol-users mailing list
    [email protected]  <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/jmol-users


    
------------------------------------------------------------------------------
    Live Security Virtual Conference
    Exclusive live event will cover all the ways today's security and
    threat landscape has changed and how IT managers can respond.
    Discussions
    will include endpoint security, mobile security and the latest in
    malware
    threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
    _______________________________________________
    Jmol-users mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/jmol-users




--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to