Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How 2 suppress Certificate warning dialog while using Browser ActiveX
How 2 suppress Certificate warning dialog while using Browser ActiveX [message #437419] Fri, 04 June 2004 02:12 Go to next message
Eclipse UserFriend
Originally posted by: kamlesh_pritmani.persistent.co.in

I am using win32 API ActiveX control
(org.eclipse.swt.ole.win32.OleControlSite) to insert a browser control
(Shell.Explorer)in a View. It works fine with "http" request but gives an
untrusted-certificate warning dialog with "https". Is there any way to
supress this warning dialog.

This is the example that I am using..
http://www.eclipse.org/articles/Article-ActiveX%20Support%20 in%20SWT/ActiveX%20Support%20in%20SWT.html

Thanks,
Kamlesh
Re: How 2 suppress Certificate warning dialog while using Browser ActiveX [message #437429 is a reply to message #437419] Fri, 04 June 2004 09:08 Go to previous messageGo to next message
Eclipse UserFriend
Hi Kamlesh,

Have you tried the Browser widget? It's using OLE/IE on Windows.
You need to implement IInternetSecurityManager. Have a look at the SWT
Browser widget for details (class WebSite) in the org.eclipse.swt project.

Chris
Re: How 2 suppress Certificate warning dialog while using Browser ActiveX [message #437430 is a reply to message #437419] Fri, 04 June 2004 09:08 Go to previous messageGo to next message
Eclipse UserFriend
Hi Kamlesh,

Have you tried the Browser widget? It's using OLE/IE on Windows.
You need to implement IInternetSecurityManager. Have a look at the SWT
Browser widget for details (class WebSite) in the org.eclipse.swt project.

Chris
Re: How 2 suppress Certificate warning dialog while using Browser ActiveX [message #437864 is a reply to message #437419] Fri, 11 June 2004 11:21 Go to previous message
Eclipse UserFriend
Hello Kamlesh,

> I am using win32 API ActiveX control
> (org.eclipse.swt.ole.win32.OleControlSite) to insert a browser control
> (Shell.Explorer)in a View. It works fine with "http" request but gives an
> untrusted-certificate warning dialog with "https". Is there any way to
> supress this warning dialog.

You need value silent property of Internet Explorer to "true".

Like this :
...
static OleAutomation webBrowser;
...
setSilent(true);
...

private void setSilent(boolean p_Valeur)
{
int[] ids2 = webBrowser.getIDsOfNames(new String[] {"silent"});
if (ids2 != null)
{
webBrowser.setProperty(ids2[0],new Variant(p_Valeur));
}
}
...

Have fun,

Bruno
Previous Topic:Including a jar file in plugin app.
Next Topic:Help: standalone SWT on OS X
Goto Forum:
  


Current Time: Tue Jul 08 22:49:28 EDT 2025

Powered by FUDForum. Page generated in 0.06109 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top