The PySide.QtNetwork.QSslKey class provides an interface for private and public keys.
PySide.QtNetwork.QSslKey provides a simple API for managing keys.
Parameters: |
|
---|
Constructs a null key.
See also
Constructs an identical copy of other .
Return type: | PySide.QtNetwork.QSsl.KeyAlgorithm |
---|
Returns the key algorithm.
Clears the contents of this key, making it a null key.
See also
Return type: | PySide.QtCore.Qt::HANDLE |
---|
Returns a pointer to the native key handle, if it is available; otherwise a null pointer is returned.
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.
Return type: | PySide.QtCore.bool |
---|
Returns true if this is a null key; otherwise false.
See also
Return type: | PySide.QtCore.int |
---|
Returns the length of the key in bits, or -1 if the key is null.
Parameters: | key – PySide.QtNetwork.QSslKey |
---|---|
Return type: | PySide.QtCore.bool |
Returns true if this key is not equal to key other ; otherwise returns false.
Parameters: | key – PySide.QtNetwork.QSslKey |
---|---|
Return type: | PySide.QtCore.bool |
Returns true if this key is equal to other ; otherwise returns false.
Parameters: | passPhrase – PySide.QtCore.QByteArray |
---|---|
Return type: | PySide.QtCore.QByteArray |
Returns the key in DER encoding. The result is encrypted with passPhrase if the key is a private key and passPhrase is non-empty.
Parameters: | passPhrase – PySide.QtCore.QByteArray |
---|---|
Return type: | PySide.QtCore.QByteArray |
Returns the key in PEM encoding. The result is encrypted with passPhrase if the key is a private key and passPhrase is non-empty.
Return type: | PySide.QtNetwork.QSsl.KeyType |
---|
Returns the type of the key (i.e., PublicKey or PrivateKey).