Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 06: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 13:08 Go to previous messageGo to next message
Christophe Cornu is currently offline Christophe CornuFriend
Messages: 304
Registered: July 2009
Senior Member
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 13:08 Go to previous messageGo to next message
Christophe Cornu is currently offline Christophe CornuFriend
Messages: 304
Registered: July 2009
Senior Member
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 15:21 Go to previous message
Bruno is currently offline BrunoFriend
Messages: 26
Registered: July 2009
Junior Member
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: Thu Mar 28 10:56:41 GMT 2024

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

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

Back to the top