464 manager = Helpviewer.HelpWindow.HelpWindow.bookmarksManager() |
463 manager = Helpviewer.HelpWindow.HelpWindow.bookmarksManager() |
465 from .Bookmarks.BookmarkNode import BookmarkNode |
464 from .Bookmarks.BookmarkNode import BookmarkNode |
466 for bookmark in manager.bookmarksForUrl(reply.url()): |
465 for bookmark in manager.bookmarksForUrl(reply.url()): |
467 manager.setTimestamp(bookmark, BookmarkNode.TsModified, modified) |
466 manager.setTimestamp(bookmark, BookmarkNode.TsModified, modified) |
468 |
467 |
469 def getSslInfo(self): |
468 def getSslCertificate(self): |
470 """ |
469 """ |
471 Public method to get a reference to the SSL info object. |
470 Public method to get a reference to the SSL certificate. |
472 |
471 |
473 @return reference to the SSL info (QSslCertificate) |
472 @return amended SSL certificate (QSslCertificate) |
474 """ |
473 """ |
475 if self.__sslConfiguration is None: |
474 if self.__sslConfiguration is None: |
476 return None |
475 return None |
477 |
476 |
478 sslInfo = self.__sslConfiguration.peerCertificate() |
477 sslInfo = self.__sslConfiguration.peerCertificate() |
479 sslInfo.url = QUrl(self.__sslConfiguration.url) |
478 sslInfo.url = QUrl(self.__sslConfiguration.url) |
480 return sslInfo |
479 return sslInfo |
481 |
480 |
482 def showSslInfo(self): |
481 def getSslCertificateChain(self): |
|
482 """ |
|
483 Public method to get a reference to the SSL certificate chain. |
|
484 |
|
485 @return SSL certificate chain (list of QSslCertificate) |
|
486 """ |
|
487 if self.__sslConfiguration is None: |
|
488 return [] |
|
489 |
|
490 chain = self.__sslConfiguration.peerCertificateChain() |
|
491 return chain |
|
492 |
|
493 def showSslInfo(self, pos): |
483 """ |
494 """ |
484 Public slot to show some SSL information for the loaded page. |
495 Public slot to show some SSL information for the loaded page. |
485 """ |
496 """ |
486 if SSL_AVAILABLE and self.__sslConfiguration is not None: |
497 if SSL_AVAILABLE and self.__sslConfiguration is not None: |
487 dlg = E5SslInfoDialog(self.getSslInfo(), self.view()) |
498 from E5Network.E5SslInfoWidget import E5SslInfoWidget |
488 dlg.exec_() |
499 widget = E5SslInfoWidget(self.mainFrame().url(), self.__sslConfiguration, |
|
500 self.view()) |
|
501 widget.showAt(pos) |
489 else: |
502 else: |
490 E5MessageBox.warning(self.view(), |
503 E5MessageBox.warning(self.view(), |
491 self.trUtf8("SSL Certificate Info"), |
504 self.trUtf8("SSL Info"), |
492 self.trUtf8("""There is no SSL Certificate Info available.""")) |
505 self.trUtf8("""This site does not contain SSL information.""")) |
493 |
506 |
494 def hasValidSslInfo(self): |
507 def hasValidSslInfo(self): |
495 """ |
508 """ |
496 Public method to check, if the page has a valid SSL certificate. |
509 Public method to check, if the page has a valid SSL certificate. |
497 |
510 |