| View previous topic :: View next topic |
| Author |
Message |
Gladis
Joined: 24 May 2006 Posts: 108
|
| Any pointers as to how I gain a certain privilege from an applet? I already have allPermissions, but I am still getting a securityexception when trying to create a Robot object |
| |
|
|
|
|
Shirley Kidman
Joined: 21 Jun 2006 Posts: 30
|
| Sign it. |
| |
|
|
Gladis
Joined: 24 May 2006 Posts: 108
|
Shirley Kidman, already did
everything else works fine, just not createRobot |
| |
|
|
Mupolan
Joined: 30 May 2006 Posts: 101
|
| with a _real_ cert |
| |
|
|
Gladis
Joined: 24 May 2006 Posts: 108
|
| does that make a difference? |
| |
|
|
Mupolan
Joined: 30 May 2006 Posts: 101
|
| applets silently ignore self signed certs |
| |
|
|
Gladis
Joined: 24 May 2006 Posts: 108
|
| or are you just guessing? |
| |
|
|
Mupolan
Joined: 30 May 2006 Posts: 101
|
| it is a well known fact, if you bother to sign your applet you ought to know that |
| |
|
|
Gladis
Joined: 24 May 2006 Posts: 108
|
| Mupolan, well, I can get read/write/clipboard perms from this selfsigned cert, so I guess it works somewhat |
| |
|
|
Shirley Kidman
Joined: 21 Jun 2006 Posts: 30
|
| Mupolan, I didn't know that well-known fact |
| |
|
|
Mupolan
Joined: 30 May 2006 Posts: 101
|
| Gladis, or just switch to webstart since ws supports self signed certs |
| |
|
|
|
|
Gladis
Joined: 24 May 2006 Posts: 108
|
| Mupolan, what I am trying to find out here is whether you know for a fact that createRobot needs signing by a real cert, unlike everything else, or if you are just making a blanket statement ... because it sounds _very_ strange to me |
| |
|
|
Shirley Kidman
Joined: 21 Jun 2006 Posts: 30
|
| Gladis, Yes, applets are off-topic, Java Web Start is the way forward. |
| |
|
|
Gladis
Joined: 24 May 2006 Posts: 108
|
| Shirley Kidman, can't change it. sorry. |
| |
|
|
Mupolan
Joined: 30 May 2006 Posts: 101
|
| Gladis, I have not used Robot myself so I can not say that I am 100% sure. Can you read/write files with your self signed applet? |
| |
|
|
Shirley Kidman
Joined: 21 Jun 2006 Posts: 30
|
| Mupolan, He already said so. |
| |
|
|
Gladis
Joined: 24 May 2006 Posts: 108
|
| Mupolan, yes and also the clipboard |
| |
|
|
Mupolan
Joined: 30 May 2006 Posts: 101
|
Gladis, ah, I read that as read/write clipboard...
odd...
appletviewer or web browser? |
| |
|
|
Gladis
Joined: 24 May 2006 Posts: 108
|
Mupolan, works in appletviewer, not in browser
Now I tried clearing and deleting every conceivable cache, in case the permission set granted to the applet was cached somewhere |
| |
|
|
Mupolan
Joined: 30 May 2006 Posts: 101
|
| Gladis, file access works in appletviewer and in browser? |
| |
|
|
Gladis
Joined: 24 May 2006 Posts: 108
|
No difference
Mupolan, yes.
everything has been working peachy with my self signed applet on numerous platforms, reading/writing files and clipboard |
| |
|
|
|
|
Mupolan
Joined: 30 May 2006 Posts: 101
|
| Odd, then sun has changed something in the later versions of java.. |
| |
|
|
Gladis
Joined: 24 May 2006 Posts: 108
|
Until I introduced the Robot class
I just realized something even weirder
It works as long as it doesn't get called from javascript |
| |
|
|
Mupolan
Joined: 30 May 2006 Posts: 101
|
| Gladis, windows or X? |
| |
|
|
Gladis
Joined: 24 May 2006 Posts: 108
|
Windows
It works as long as the method is invoked by any other means than a method called from javascript
I fooled the mechanism
Now it works |
| |
|
|
|