Hirdetés

Keresés

Új hozzászólás Aktív témák

  • rt06
    veterán

    Szerintem (találtam :D)
    Unsigned applets cannot perform the following operations:

    They cannot access client resources such as the local filesystem, executable files, system clipboard, and printers.
    They cannot connect to or retrieve resources from any third party server (any server other than the server it originated from).
    They cannot load native libraries.
    They cannot change the SecurityManager.
    They cannot create a ClassLoader.
    They cannot read certain system properties. See System Properties for a list of forbidden system properties.

    És még:
    Note:

    JavaScript code is treated like unsigned code.
    When a signed applet is accessed from JavaScript code
    in an HTML page, the applet is executed within the
    security sandbox. This implies that the signed applet
    essentially behaves likes an unsigned applet.

    AE

    no, most, hogy mukodik rendesen az applet (forras: sajat kod + dnsjava), ez a masodik - javascript-re vonatkozo - resz okoz problemat

    az applet betoltodesekor lefut annak init fuggvenye, es gyonyoruen kiirja java konzolba mind a helyi, mind a tavoli gep ip cimeit (pontosabban egyelore par beegetett tavoli szerver ip cimeit a teszt kedveert)

    Local machine hostname: voskhod-1
    Local IPv4 addresses:
    Local IPv6 adresses: 2a01:368:e10d:0:0:0:0:20
    Remote IPv4 addresses: 209.85.148.99 209.85.148.103 209.85.148.104 209.85.148.105 209.85.148.106 209.85.148.147
    Remote IPv6 addresses: 2001:4c48:1:d5:0:0:2:1b 2001:4c48:1:d5:0:0:1:1b

    viszont mikor kezzel hivom meg jmk.hu/temp/java/indicator/scripts/index.jsa fuggveny(eke)t, nem kapok eredmenyt, csak egy ilyen hibat:
    java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.0.1:53 connect,resolve

    itt, ha jol sejtem (es jol ertelmezem a google talalatokat), pontosan az okozza a problemat, amit fentebb irtal, miszerint a javascript-bol meghivott java kod insigned kodkent kerul futtatasra, s igy sem a helyi halozati eszkozoket nem tudom lekerni, sem a dns szerverhez (az lenne a 192.168.0.1:53) nem tudok kapcsolodni

    kerdesem az lenne, hogy van-e valamilyen mod ennek megkerulesere
    egy lehetseges megoldasra tudok gondolni, hogy js-bol beallitok egy valtozot a java kodban, majd egy timer esemenyre meghivodo fuggveny elvegzi a valtozoban tarolt domain ip cimekre torteno feloldasat, az eredmenyt pedig egy masik string-be irja es eldob egy esemenyt, amit javascript oldalon elkapok (ha lehet egyaltalan ilyet), s ennek hatasara a javascript kiolvassa a valtozok erteke
    viszont ez elegge favago megoldas, jo lenne valami ertelmesebbet hasznalni, ha van ra mod

  • rt06
    veterán

    Szerintem (találtam :D)
    Unsigned applets cannot perform the following operations:

    They cannot access client resources such as the local filesystem, executable files, system clipboard, and printers.
    They cannot connect to or retrieve resources from any third party server (any server other than the server it originated from).
    They cannot load native libraries.
    They cannot change the SecurityManager.
    They cannot create a ClassLoader.
    They cannot read certain system properties. See System Properties for a list of forbidden system properties.

    És még:
    Note:

    JavaScript code is treated like unsigned code.
    When a signed applet is accessed from JavaScript code
    in an HTML page, the applet is executed within the
    security sandbox. This implies that the signed applet
    essentially behaves likes an unsigned applet.

    AE

    jot talaltal, alairas utan mukodik szepen
    koszonom a segitseget

Új hozzászólás Aktív témák