QGIS/python/PyQt6/core/auto_additions/qgsauthcertutils.py
Nyall Dawson 1f27fc627a [pyqgis] Wrap unambiguously static methods in staticmethod
sip doesn't use the standard Python staticmethod type for defining
static methods, which means that standard means of testing
for a static method (like `isinstance(..., staticmethod)`) fail
with any PyQGIS static methods.

This causes issues with lint tools, which incorrectly flag
calls to QGIS static methods as missing self arguments. It also
breaks detection of static methods in the sphinx PyQGIS docs,
so all static methods are shown as non-static.

Work around this in sipify, by wrapping unambiguously static
methods in staticmethod wrappers.
2024-08-14 22:08:41 +10:00

57 lines
4.5 KiB
Python

# The following has been generated automatically from src/core/auth/qgsauthcertutils.h
QgsAuthCertUtils.SystemRoot = QgsAuthCertUtils.CaCertSource.SystemRoot
QgsAuthCertUtils.FromFile = QgsAuthCertUtils.CaCertSource.FromFile
QgsAuthCertUtils.InDatabase = QgsAuthCertUtils.CaCertSource.InDatabase
QgsAuthCertUtils.Connection = QgsAuthCertUtils.CaCertSource.Connection
QgsAuthCertUtils.DefaultTrust = QgsAuthCertUtils.CertTrustPolicy.DefaultTrust
QgsAuthCertUtils.Trusted = QgsAuthCertUtils.CertTrustPolicy.Trusted
QgsAuthCertUtils.Untrusted = QgsAuthCertUtils.CertTrustPolicy.Untrusted
QgsAuthCertUtils.NoPolicy = QgsAuthCertUtils.CertTrustPolicy.NoPolicy
QgsAuthCertUtils.UndeterminedUsage = QgsAuthCertUtils.CertUsageType.UndeterminedUsage
QgsAuthCertUtils.AnyOrUnspecifiedUsage = QgsAuthCertUtils.CertUsageType.AnyOrUnspecifiedUsage
QgsAuthCertUtils.CertAuthorityUsage = QgsAuthCertUtils.CertUsageType.CertAuthorityUsage
QgsAuthCertUtils.CertIssuerUsage = QgsAuthCertUtils.CertUsageType.CertIssuerUsage
QgsAuthCertUtils.TlsServerUsage = QgsAuthCertUtils.CertUsageType.TlsServerUsage
QgsAuthCertUtils.TlsServerEvUsage = QgsAuthCertUtils.CertUsageType.TlsServerEvUsage
QgsAuthCertUtils.TlsClientUsage = QgsAuthCertUtils.CertUsageType.TlsClientUsage
QgsAuthCertUtils.CodeSigningUsage = QgsAuthCertUtils.CertUsageType.CodeSigningUsage
QgsAuthCertUtils.EmailProtectionUsage = QgsAuthCertUtils.CertUsageType.EmailProtectionUsage
QgsAuthCertUtils.TimeStampingUsage = QgsAuthCertUtils.CertUsageType.TimeStampingUsage
QgsAuthCertUtils.CRLSigningUsage = QgsAuthCertUtils.CertUsageType.CRLSigningUsage
QgsAuthCertUtils.KeyUsage = QgsAuthCertUtils.ConstraintGroup.KeyUsage
QgsAuthCertUtils.ExtendedKeyUsage = QgsAuthCertUtils.ConstraintGroup.ExtendedKeyUsage
QgsAuthCertUtils.getSslProtocolName = staticmethod(QgsAuthCertUtils.getSslProtocolName)
QgsAuthCertUtils.mapDigestToCerts = staticmethod(QgsAuthCertUtils.mapDigestToCerts)
QgsAuthCertUtils.mapDigestToSslConfigs = staticmethod(QgsAuthCertUtils.mapDigestToSslConfigs)
QgsAuthCertUtils.fileData = staticmethod(QgsAuthCertUtils.fileData)
QgsAuthCertUtils.certsFromFile = staticmethod(QgsAuthCertUtils.certsFromFile)
QgsAuthCertUtils.casFromFile = staticmethod(QgsAuthCertUtils.casFromFile)
QgsAuthCertUtils.certFromFile = staticmethod(QgsAuthCertUtils.certFromFile)
QgsAuthCertUtils.casMerge = staticmethod(QgsAuthCertUtils.casMerge)
QgsAuthCertUtils.keyFromFile = staticmethod(QgsAuthCertUtils.keyFromFile)
QgsAuthCertUtils.certsFromString = staticmethod(QgsAuthCertUtils.certsFromString)
QgsAuthCertUtils.casRemoveSelfSigned = staticmethod(QgsAuthCertUtils.casRemoveSelfSigned)
QgsAuthCertUtils.certKeyBundleToPem = staticmethod(QgsAuthCertUtils.certKeyBundleToPem)
QgsAuthCertUtils.pemIsPkcs8 = staticmethod(QgsAuthCertUtils.pemIsPkcs8)
QgsAuthCertUtils.pkcs12BundleToPem = staticmethod(QgsAuthCertUtils.pkcs12BundleToPem)
QgsAuthCertUtils.pkcs12BundleCas = staticmethod(QgsAuthCertUtils.pkcs12BundleCas)
QgsAuthCertUtils.certsToPemText = staticmethod(QgsAuthCertUtils.certsToPemText)
QgsAuthCertUtils.pemTextToTempFile = staticmethod(QgsAuthCertUtils.pemTextToTempFile)
QgsAuthCertUtils.getCaSourceName = staticmethod(QgsAuthCertUtils.getCaSourceName)
QgsAuthCertUtils.resolvedCertName = staticmethod(QgsAuthCertUtils.resolvedCertName)
QgsAuthCertUtils.getCertTrustName = staticmethod(QgsAuthCertUtils.getCertTrustName)
QgsAuthCertUtils.getColonDelimited = staticmethod(QgsAuthCertUtils.getColonDelimited)
QgsAuthCertUtils.shaHexForCert = staticmethod(QgsAuthCertUtils.shaHexForCert)
QgsAuthCertUtils.certificateUsageTypes = staticmethod(QgsAuthCertUtils.certificateUsageTypes)
QgsAuthCertUtils.certificateIsAuthority = staticmethod(QgsAuthCertUtils.certificateIsAuthority)
QgsAuthCertUtils.certificateIsIssuer = staticmethod(QgsAuthCertUtils.certificateIsIssuer)
QgsAuthCertUtils.certificateIsAuthorityOrIssuer = staticmethod(QgsAuthCertUtils.certificateIsAuthorityOrIssuer)
QgsAuthCertUtils.certificateIsSslServer = staticmethod(QgsAuthCertUtils.certificateIsSslServer)
QgsAuthCertUtils.certificateIsSslClient = staticmethod(QgsAuthCertUtils.certificateIsSslClient)
QgsAuthCertUtils.sslErrorEnumString = staticmethod(QgsAuthCertUtils.sslErrorEnumString)
QgsAuthCertUtils.certIsCurrent = staticmethod(QgsAuthCertUtils.certIsCurrent)
QgsAuthCertUtils.certViabilityErrors = staticmethod(QgsAuthCertUtils.certViabilityErrors)
QgsAuthCertUtils.certIsViable = staticmethod(QgsAuthCertUtils.certIsViable)
QgsAuthCertUtils.validateCertChain = staticmethod(QgsAuthCertUtils.validateCertChain)
QgsAuthCertUtils.validatePKIBundle = staticmethod(QgsAuthCertUtils.validatePKIBundle)