src/eric7/Documentation/Source/eric7.EricNetwork.EricSslCertificatesInfoWidget.html

Sat, 26 Apr 2025 12:34:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 26 Apr 2025 12:34:32 +0200
branch
eric7
changeset 11240
c48c615c04a3
parent 10479
856476537696
permissions
-rw-r--r--

MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.

<!DOCTYPE html>
<html><head>
<title>eric7.EricNetwork.EricSslCertificatesInfoWidget</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.EricNetwork.EricSslCertificatesInfoWidget</h1>
<p>
Module implementing a widget to show SSL certificate infos.
</p>

<h3>Global Attributes</h3>
<table>
<tr><td>QSslCertificate</td></tr>
</table>

<h3>Classes</h3>
<table>
<tr>
<td><a href="#EricSslCertificatesInfoWidget">EricSslCertificatesInfoWidget</a></td>
<td>Class implementing a widget to show SSL certificate infos.</td>
</tr>
</table>

<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>

<hr />
<hr />
<a NAME="EricSslCertificatesInfoWidget" ID="EricSslCertificatesInfoWidget"></a>
<h2>EricSslCertificatesInfoWidget</h2>
<p>
    Class implementing a widget to show SSL certificate infos.
</p>

<h3>Derived from</h3>
QWidget, Ui_EricSslCertificatesInfoWidget
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Methods</h3>
<table>
<tr>
<td><a href="#EricSslCertificatesInfoWidget.__init__">EricSslCertificatesInfoWidget</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#EricSslCertificatesInfoWidget.__certificateString">__certificateString</a></td>
<td>Private method to prepare some text for display.</td>
</tr>
<tr>
<td><a href="#EricSslCertificatesInfoWidget.__formatHexString">__formatHexString</a></td>
<td>Private method to format a hex string for display.</td>
</tr>
<tr>
<td><a href="#EricSslCertificatesInfoWidget.__hasExpired">__hasExpired</a></td>
<td>Private method to check for a certificate expiration.</td>
</tr>
<tr>
<td><a href="#EricSslCertificatesInfoWidget.__serialNumber">__serialNumber</a></td>
<td>Private slot to format the certificate serial number.</td>
</tr>
<tr>
<td><a href="#EricSslCertificatesInfoWidget.__showCertificate">__showCertificate</a></td>
<td>Private method to show the  SSL certificate information.</td>
</tr>
<tr>
<td><a href="#EricSslCertificatesInfoWidget.on_chainComboBox_activated">on_chainComboBox_activated</a></td>
<td>Private slot to show the certificate info for the selected entry.</td>
</tr>
<tr>
<td><a href="#EricSslCertificatesInfoWidget.showCertificate">showCertificate</a></td>
<td>Public method to show the SSL certificate information.</td>
</tr>
<tr>
<td><a href="#EricSslCertificatesInfoWidget.showCertificateChain">showCertificateChain</a></td>
<td>Public method to show the SSL certificates of a certificate chain.</td>
</tr>
</table>

<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>


<a NAME="EricSslCertificatesInfoWidget.__init__" ID="EricSslCertificatesInfoWidget.__init__"></a>
<h4>EricSslCertificatesInfoWidget (Constructor)</h4>
<b>EricSslCertificatesInfoWidget</b>(<i>parent=None</i>)
<p>
        Constructor
</p>

<dl>

<dt><i>parent</i> (QWidget)</dt>
<dd>
reference to the parent widget
</dd>
</dl>
<a NAME="EricSslCertificatesInfoWidget.__certificateString" ID="EricSslCertificatesInfoWidget.__certificateString"></a>
<h4>EricSslCertificatesInfoWidget.__certificateString</h4>
<b>__certificateString</b>(<i>txt</i>)
<p>
        Private method to prepare some text for display.
</p>

<dl>

<dt><i>txt</i> (str)</dt>
<dd>
text to be displayed
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
prepared text
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
str
</dd>
</dl>
<a NAME="EricSslCertificatesInfoWidget.__formatHexString" ID="EricSslCertificatesInfoWidget.__formatHexString"></a>
<h4>EricSslCertificatesInfoWidget.__formatHexString</h4>
<b>__formatHexString</b>(<i>hexString</i>)
<p>
        Private method to format a hex string for display.
</p>

<dl>

<dt><i>hexString</i> (str)</dt>
<dd>
hex string to be formatted
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
formatted string
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
str
</dd>
</dl>
<a NAME="EricSslCertificatesInfoWidget.__hasExpired" ID="EricSslCertificatesInfoWidget.__hasExpired"></a>
<h4>EricSslCertificatesInfoWidget.__hasExpired</h4>
<b>__hasExpired</b>(<i>effectiveDate, expiryDate</i>)
<p>
        Private method to check for a certificate expiration.
</p>

<dl>

<dt><i>effectiveDate</i> (QDateTime)</dt>
<dd>
date the certificate becomes effective
</dd>
<dt><i>expiryDate</i> (QDateTime)</dt>
<dd>
date the certificate expires
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
flag indicating the expiration status
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
bool
</dd>
</dl>
<a NAME="EricSslCertificatesInfoWidget.__serialNumber" ID="EricSslCertificatesInfoWidget.__serialNumber"></a>
<h4>EricSslCertificatesInfoWidget.__serialNumber</h4>
<b>__serialNumber</b>(<i>cert</i>)
<p>
        Private slot to format the certificate serial number.
</p>

<dl>

<dt><i>cert</i> (QSslCertificate)</dt>
<dd>
reference to the SSL certificate
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
formated serial number
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
str
</dd>
</dl>
<a NAME="EricSslCertificatesInfoWidget.__showCertificate" ID="EricSslCertificatesInfoWidget.__showCertificate"></a>
<h4>EricSslCertificatesInfoWidget.__showCertificate</h4>
<b>__showCertificate</b>(<i>certificate</i>)
<p>
        Private method to show the  SSL certificate information.
</p>

<dl>

<dt><i>certificate</i> (QSslCertificate)</dt>
<dd>
reference to the SSL certificate
</dd>
</dl>
<a NAME="EricSslCertificatesInfoWidget.on_chainComboBox_activated" ID="EricSslCertificatesInfoWidget.on_chainComboBox_activated"></a>
<h4>EricSslCertificatesInfoWidget.on_chainComboBox_activated</h4>
<b>on_chainComboBox_activated</b>(<i>index</i>)
<p>
        Private slot to show the certificate info for the selected entry.
</p>

<dl>

<dt><i>index</i> (int)</dt>
<dd>
number of the certificate in the certificate chain
</dd>
</dl>
<a NAME="EricSslCertificatesInfoWidget.showCertificate" ID="EricSslCertificatesInfoWidget.showCertificate"></a>
<h4>EricSslCertificatesInfoWidget.showCertificate</h4>
<b>showCertificate</b>(<i>certificate</i>)
<p>
        Public method to show the SSL certificate information.
</p>

<dl>

<dt><i>certificate</i> (QSslCertificate)</dt>
<dd>
reference to the SSL certificate
</dd>
</dl>
<a NAME="EricSslCertificatesInfoWidget.showCertificateChain" ID="EricSslCertificatesInfoWidget.showCertificateChain"></a>
<h4>EricSslCertificatesInfoWidget.showCertificateChain</h4>
<b>showCertificateChain</b>(<i>certificateChain</i>)
<p>
        Public method to show the SSL certificates of a certificate chain.
</p>

<dl>

<dt><i>certificateChain</i> (list of QSslCertificate)</dt>
<dd>
list od SSL certificates
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial