src/eric7/EricNetwork/EricSslCertificatesInfoWidget.py

branch
eric7
changeset 10423
299802979277
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
--- a/src/eric7/EricNetwork/EricSslCertificatesInfoWidget.py	Tue Dec 19 11:04:03 2023 +0100
+++ b/src/eric7/EricNetwork/EricSslCertificatesInfoWidget.py	Tue Dec 19 19:57:08 2023 +0100
@@ -29,7 +29,8 @@
         """
         Constructor
 
-        @param parent reference to the parent widget (QWidget)
+        @param parent reference to the parent widget
+        @type QWidget
         """
         super().__init__(parent)
         self.setupUi(self)
@@ -41,7 +42,7 @@
         Public method to show the SSL certificates of a certificate chain.
 
         @param certificateChain list od SSL certificates
-            (list of QSslCertificate)
+        @type list of QSslCertificate
         """
         if QSslCertificate:
             self.chainLabel.show()
@@ -68,7 +69,8 @@
         """
         Public method to show the SSL certificate information.
 
-        @param certificate reference to the SSL certificate (QSslCertificate)
+        @param certificate reference to the SSL certificate
+        @type QSslCertificate
         """
         self.chainLabel.hide()
         self.chainComboBox.hide()
@@ -83,7 +85,8 @@
         """
         Private method to show the  SSL certificate information.
 
-        @param certificate reference to the SSL certificate (QSslCertificate)
+        @param certificate reference to the SSL certificate
+        @type QSslCertificate
         """
         if QSslCertificate:
             self.blacklistedLabel.setVisible(False)
@@ -178,8 +181,10 @@
         """
         Private method to prepare some text for display.
 
-        @param txt text to be displayed (string)
-        @return prepared text (string)
+        @param txt text to be displayed
+        @type str
+        @return prepared text
+        @rtype str
         """
         if txt is None or txt == "":
             return self.tr("<not part of the certificate>")
@@ -190,8 +195,10 @@
         """
         Private slot to format the certificate serial number.
 
-        @param cert reference to the SSL certificate (QSslCertificate)
-        @return formated serial number (string)
+        @param cert reference to the SSL certificate
+        @type QSslCertificate
+        @return formated serial number
+        @rtype str
         """
         serial = cert.serialNumber()
         if serial == "":
@@ -207,8 +214,10 @@
         """
         Private method to format a hex string for display.
 
-        @param hexString hex string to be formatted (string)
-        @return formatted string (string)
+        @param hexString hex string to be formatted
+        @type str
+        @return formatted string
+        @rtype str
         """
         hexString = hexString.upper()
 
@@ -226,9 +235,12 @@
         """
         Private method to check for a certificate expiration.
 
-        @param effectiveDate date the certificate becomes effective (QDateTime)
-        @param expiryDate date the certificate expires (QDateTime)
-        @return flag indicating the expiration status (boolean)
+        @param effectiveDate date the certificate becomes effective
+        @type QDateTime
+        @param expiryDate date the certificate expires
+        @type QDateTime
+        @return flag indicating the expiration status
+        @rtype bool
         """
         now = QDateTime.currentDateTime()
 
@@ -240,6 +252,6 @@
         Private slot to show the certificate info for the selected entry.
 
         @param index number of the certificate in the certificate chain
-            (integer)
+        @type int
         """
         self.__showCertificate(self.__chain[index])

eric ide

mercurial