Skip to content

PythonQt.QtNetwork.QSslKey · declarations 001

Back to PythonQt.QtNetwork.QSslKey

algorithm

algorithm() -> Any

X.algorithm()

Supplemental documentation: Qt 5 reference:

QSsl::KeyAlgorithm QSslKey::algorithm() const

Returns the key algorithm.

Upstream PySide2 reference signatures (binding differences may apply):

algorithm(self) -> PySide2.QtNetwork.QSsl.KeyAlgorithm

Source: https://doc.qt.io/archives/qt-5.15/qsslkey.html#algorithm

clear

clear() -> None

X.clear()

Supplemental documentation: Qt 5 reference:

void QSslKey::clear()

Clears the contents of this key, making it a null key.

See also isNull().

Upstream PySide2 reference signatures (binding differences may apply):

clear(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qsslkey.html#clear

handle

handle() -> int

X.handle()

Supplemental documentation: Qt 5 reference:

Qt::HANDLE QSslKey::handle() const

Returns a pointer to the native key handle, if there is one, else nullptr.

You can use this handle together with the native API to access extended information about the key.

Warning: Use of this function has a high probability of being non-portable, and its return value may vary across platforms, and between minor Qt releases.

Upstream PySide2 reference signatures (binding differences may apply):

handle(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qsslkey.html#handle

isNull

isNull() -> bool

X.isNull() -> bool

Supplemental documentation: Qt 5 reference:

bool QSslKey::isNull() const

Returns true if this is a null key; otherwise false.

See also clear().

Upstream PySide2 reference signatures (binding differences may apply):

isNull(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qsslkey.html#isNull

length

length() -> int

X.length() -> int

Supplemental documentation: Qt 5 reference:

int QSslKey::length() const

Returns the length of the key in bits, or -1 if the key is null.

Upstream PySide2 reference signatures (binding differences may apply):

length(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qsslkey.html#length

operator_assign

operator_assign(other: Any) -> Any

X.operator_assign(other) -> PythonQt.QtNetwork.QSslKey

swap

swap(other: Any) -> None

X.swap(other)

Supplemental documentation: Qt 5 reference:

void QSslKey::swap(QSslKey \&other)

Swaps this ssl key with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

Upstream PySide2 reference signatures (binding differences may apply):

swap(self, other: PySide2.QtNetwork.QSslKey) -> None

Source: https://doc.qt.io/archives/qt-5.15/qsslkey.html#swap

toDer

toDer(passPhrase: Any) -> Any

X.toDer(passPhrase) -> PythonQt.QtCore.QByteArray

Supplemental documentation: Qt 5 reference:

QByteArray QSslKey::toDer(const QByteArray \&passPhrase \= QByteArray()) const

Returns the key in DER encoding.

The passPhrase argument should be omitted as DER cannot be encrypted. It will be removed in a future version of Qt.

Upstream PySide2 reference signatures (binding differences may apply):

toDer(self, passPhrase: PySide2.QtCore.QByteArray=...) -> PySide2.QtCore.QByteArray

Source: https://doc.qt.io/archives/qt-5.15/qsslkey.html#toDer

toPem

toPem(passPhrase: Any) -> Any

X.toPem(passPhrase) -> PythonQt.QtCore.QByteArray

Supplemental documentation: Qt 5 reference:

QByteArray QSslKey::toPem(const QByteArray \&passPhrase \= QByteArray()) const

Returns the key in PEM encoding. The result is encrypted with passPhrase if the key is a private key and passPhrase is non-empty.

Upstream PySide2 reference signatures (binding differences may apply):

toPem(self, passPhrase: PySide2.QtCore.QByteArray=...) -> PySide2.QtCore.QByteArray

Source: https://doc.qt.io/archives/qt-5.15/qsslkey.html#toPem

type

type() -> Any

X.type()

Supplemental documentation: Qt 5 reference:

QSsl::KeyType QSslKey::type() const

Returns the type of the key (i.e., PublicKey or PrivateKey).

Upstream PySide2 reference signatures (binding differences may apply):

type(self) -> PySide2.QtNetwork.QSsl.KeyType

Source: https://doc.qt.io/archives/qt-5.15/qsslkey.html#type