Skip to main content

Changing the logo in Java security warning

7 replies [Last post]
rituraj_tiwari
Offline
Joined: 2005-07-06

When you run a signed applet, there is a security warning asking your permission to let it run. Does the Java plugin provide any means of customizing the look of that window, say, by permitting my own logo on the top right hand side of the window?

I have seen this done in a Java Webstart application. Could not find any information on how to do it for an Applet jar.

Anyone know about this?

Thanks.
-Raj

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rituraj_tiwari
Offline
Joined: 2005-07-06

I saw this in a JDK 1.4.2 JWS application for Citrix Netscaler configuration UI. The Citrix logo was part of the Java security warning.

kbr
Offline
Joined: 2003-06-16

Thanks. I asked the rest of the deployment team and it turns out this was a feature added to Java Web Start in Java SE 6. If the signed application's certificate is trusted and the application provided an icon, that icon will show up in the security dialog.

Currently there is no mechanism for specifying such an icon for applets. However, we are working on adding support to the Java Plug-In for launching applets directly from JNLP files and this is one of the features we should support as a side-effect. I've modified the associated bug, which is 6606784, to indicate we should add this support. Note that this isn't visible on the Sun Bug Database yet but should be within a week or so.

rituraj_tiwari
Offline
Joined: 2005-07-06

Thanks for the informed response. My main question is how is the icon currently specified in JWS? What will be the means for specifying this in applets? I have looked all over the place for a means to specify this even for JWS and could not find out how.

As an aside: I saw the Citrix icon on JDK 1.4. I remember this clearly because I was forced to install JDK 1.4 on my machine because JWS refused to run the application without it.

Thanks for your help.
-Raj

kbr
Offline
Joined: 2003-06-16

Sorry again for the delay, I'm not yet in the habit of checking these forums on a regular basis.

The icon is the one specified for the app in the JNLP file.

rituraj_tiwari
Offline
Joined: 2005-07-06

Thanks for this info. Should I read your previous response to mean that applets downloaded from the web bearing valid cert issued by a trusted CA will be able to display their icons in the security dialog like JNLP does today?

-Raj

kbr
Offline
Joined: 2003-06-16

Yes, again assuming the applet is launched using the forthcoming JNLP support.

kbr
Offline
Joined: 2003-06-16

Where did you see this done for a Java Web Start application? I don't think we provide controls to developers to change the look of the security dialogs. Doing so would be a potential security risk.