eric7/E5Network/E5SslCertificatesInfoDialog.py

branch
eric7
changeset 8312
800c432b34c8
parent 8218
7c09585bd960
child 8318
962bce857696
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/eric7/E5Network/E5SslCertificatesInfoDialog.py	Sat May 15 18:45:04 2021 +0200
@@ -0,0 +1,29 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2010 - 2021 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module implementing a dialog to show SSL certificate infos.
+"""
+
+from PyQt5.QtWidgets import QDialog
+
+from .Ui_E5SslCertificatesInfoDialog import Ui_E5SslCertificatesInfoDialog
+
+
+class E5SslCertificatesInfoDialog(QDialog, Ui_E5SslCertificatesInfoDialog):
+    """
+    Class implementing a dialog to show SSL certificate infos.
+    """
+    def __init__(self, certificateChain, parent=None):
+        """
+        Constructor
+        
+        @param certificateChain SSL certificate chain (list of QSslCertificate)
+        @param parent reference to the parent widget (QWidget)
+        """
+        super().__init__(parent)
+        self.setupUi(self)
+        
+        self.sslWidget.showCertificateChain(certificateChain)

eric ide

mercurial