eric5.Helpviewer.SslInfoWidget

Module implementing a widget to show SSL certificate infos.

Global Attributes

None

Classes

SslInfoWidget Class implementing a widget to show SSL certificate infos.

Functions

None


SslInfoWidget

Class implementing a widget to show SSL certificate infos.

Derived from

QWidget, Ui_SslInfoWidget

Class Attributes

None

Class Methods

None

Methods

SslInfoWidget Constructor
__certificateString Private method to prepare some text for display.
__formatHexString Private method to format a hex string for display.
__hasExpired Private method to check for a certificate expiration.
__serialNumber Private slot to format the certificate serial number.
showCertificate Public method to show the SSL certificate information.

Static Methods

None

SslInfoWidget (Constructor)

SslInfoWidget(parent=None)

Constructor

parent
reference to the parent widget (QWidget)

SslInfoWidget.__certificateString

__certificateString(txt)

Private method to prepare some text for display.

txt
text to be displayed (string)
Returns:
prepared text (string)

SslInfoWidget.__formatHexString

__formatHexString(hexString)

Private method to format a hex string for display.

hexString
hex string to be formatted (string)
Returns:
formatted string (string)

SslInfoWidget.__hasExpired

__hasExpired(effectiveDate, expiryDate)

Private method to check for a certificate expiration.

effectiveDate
date the certificate becomes effective (QDateTime)
expiryDate
date the certificate expires (QDateTime)
Returns:
flag indicating the expiration status (boolean)

SslInfoWidget.__serialNumber

__serialNumber(cert)

Private slot to format the certificate serial number.

cert
reference to the SSL certificate (QSslCertificate)
Returns:
formated serial number (string)

SslInfoWidget.showCertificate

showCertificate(certificate)

Public method to show the SSL certificate information.

certificate
reference to the SSL certificate (QSslCertificate)
Up