QSslSocket Class Reference
[QtNetwork module]
Inherits QTcpSocket.
Types
- enum PeerVerifyMode { VerifyNone, QueryPeer, VerifyPeer, AutoVerifyPeer }
- enum SslMode { UnencryptedMode, SslClientMode, SslServerMode }
Methods
- __init__ (self, QObject parent = None)
- abort (self)
- addCaCertificate (self, QSslCertificate)
- bool addCaCertificates (self, QString, QSsl.EncodingFormat format = QSsl.Pem, QRegExp.PatternSyntax syntax = QRegExp.FixedString)
- addCaCertificates (self, list-of-QSslCertificate)
- bool atEnd (self)
- int bytesAvailable (self)
- int bytesToWrite (self)
- list-of-QSslCertificate caCertificates (self)
- bool canReadLine (self)
- list-of-QSslCipher ciphers (self)
- close (self)
- connectToHostEncrypted (self, QString, int, QIODevice.OpenMode mode = QIODevice.ReadWrite)
- connectToHostEncrypted (self, QString, int, QString, QIODevice.OpenMode mode = QIODevice.ReadWrite)
- connectToHostImplementation (self, QString, int, QIODevice.OpenMode)
- disconnectFromHostImplementation (self)
- int encryptedBytesAvailable (self)
- int encryptedBytesToWrite (self)
- bool flush (self)
- ignoreSslErrors (self)
- ignoreSslErrors (self, list-of-QSslError)
- bool isEncrypted (self)
- QSslCertificate localCertificate (self)
- SslMode mode (self)
- QSslCertificate peerCertificate (self)
- list-of-QSslCertificate peerCertificateChain (self)
- int peerVerifyDepth (self)
- PeerVerifyMode peerVerifyMode (self)
- QSslKey privateKey (self)
- QSsl.SslProtocol protocol (self)
- str readData (self, int maxlen)
- QSslCipher sessionCipher (self)
- setCaCertificates (self, list-of-QSslCertificate)
- setCiphers (self, list-of-QSslCipher)
- setCiphers (self, QString)
- setLocalCertificate (self, QSslCertificate)
- setLocalCertificate (self, QString, QSsl.EncodingFormat format = QSsl.Pem)
- setPeerVerifyDepth (self, int)
- setPeerVerifyMode (self, PeerVerifyMode)
- setPrivateKey (self, QSslKey)
- setPrivateKey (self, QString, QSsl.KeyAlgorithm algorithm = QSsl.Rsa, QSsl.EncodingFormat format = QSsl.Pem, QByteArray passPhrase = QByteArray())
- setProtocol (self, QSsl.SslProtocol)
- setReadBufferSize (self, int)
- bool setSocketDescriptor (self, int, QAbstractSocket.SocketState state = QAbstractSocket.ConnectedState, QIODevice.OpenMode mode = QIODevice.ReadWrite)
- setSocketOption (self, QAbstractSocket.SocketOption, QVariant)
- setSslConfiguration (self, QSslConfiguration)
- QVariant socketOption (self, QAbstractSocket.SocketOption)
- QSslConfiguration sslConfiguration (self)
- list-of-QSslError sslErrors (self)
- startClientEncryption (self)
- startServerEncryption (self)
- bool waitForBytesWritten (self, int msecs = 30000)
- bool waitForConnected (self, int msecs = 30000)
- bool waitForDisconnected (self, int msecs = 30000)
- bool waitForEncrypted (self, int msecs = 30000)
- bool waitForReadyRead (self, int msecs = 30000)
- int writeData (self, str)
Static Methods
Qt Signals
Detailed Description
Type Documentation
QSslSocket.PeerVerifyMode
QSslSocket.SslMode
Method Documentation
QSslSocket.__init__ (self, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QSslSocket.abort (self)
QSslSocket.addCaCertificate (self, QSslCertificate)
bool QSslSocket.addCaCertificates (self, QString, QSsl.EncodingFormat format = QSsl.Pem, QRegExp.PatternSyntax syntax = QRegExp.FixedString)
QSslSocket.addCaCertificates (self, list-of-QSslCertificate)
QSslSocket.addDefaultCaCertificate (QSslCertificate)
bool QSslSocket.addDefaultCaCertificates (QString, QSsl.EncodingFormat format = QSsl.Pem, QRegExp.PatternSyntax syntax = QRegExp.FixedString)
QSslSocket.addDefaultCaCertificates (list-of-QSslCertificate)
bool QSslSocket.atEnd (self)
int QSslSocket.bytesAvailable (self)
int QSslSocket.bytesToWrite (self)
list-of-QSslCertificate QSslSocket.caCertificates (self)
bool QSslSocket.canReadLine (self)
list-of-QSslCipher QSslSocket.ciphers (self)
QSslSocket.close (self)
QSslSocket.connectToHostEncrypted (self, QString, int, QIODevice.OpenMode mode = QIODevice.ReadWrite)
QSslSocket.connectToHostEncrypted (self, QString, int, QString, QIODevice.OpenMode mode = QIODevice.ReadWrite)
QSslSocket.connectToHostImplementation (self, QString, int, QIODevice.OpenMode)
This method is also a Qt slot with the C++ signature void connectToHostImplementation(const QString&,quint16,QIODevice::OpenMode).
list-of-QSslCertificate QSslSocket.defaultCaCertificates ()
list-of-QSslCipher QSslSocket.defaultCiphers ()
QSslSocket.disconnectFromHostImplementation (self)
This method is also a Qt slot with the C++ signature void disconnectFromHostImplementation().
int QSslSocket.encryptedBytesAvailable (self)
int QSslSocket.encryptedBytesToWrite (self)
bool QSslSocket.flush (self)
QSslSocket.ignoreSslErrors (self)
This method is also a Qt slot with the C++ signature void ignoreSslErrors().
QSslSocket.ignoreSslErrors (self, list-of-QSslError)
bool QSslSocket.isEncrypted (self)
QSslCertificate QSslSocket.localCertificate (self)
SslMode QSslSocket.mode (self)
QSslCertificate QSslSocket.peerCertificate (self)
list-of-QSslCertificate QSslSocket.peerCertificateChain (self)
int QSslSocket.peerVerifyDepth (self)
PeerVerifyMode QSslSocket.peerVerifyMode (self)
QSslKey QSslSocket.privateKey (self)
str QSslSocket.readData (self, int maxlen)
QSslCipher QSslSocket.sessionCipher (self)
QSslSocket.setCaCertificates (self, list-of-QSslCertificate)
QSslSocket.setCiphers (self, list-of-QSslCipher)
QSslSocket.setCiphers (self, QString)
QSslSocket.setDefaultCaCertificates (list-of-QSslCertificate)
QSslSocket.setDefaultCiphers (list-of-QSslCipher)
QSslSocket.setLocalCertificate (self, QSslCertificate)
QSslSocket.setLocalCertificate (self, QString, QSsl.EncodingFormat format = QSsl.Pem)
QSslSocket.setPeerVerifyDepth (self, int)
QSslSocket.setPeerVerifyMode (self, PeerVerifyMode)
QSslSocket.setPrivateKey (self, QSslKey)
QSslSocket.setPrivateKey (self, QString, QSsl.KeyAlgorithm algorithm = QSsl.Rsa, QSsl.EncodingFormat format = QSsl.Pem, QByteArray passPhrase = QByteArray())
QSslSocket.setReadBufferSize (self, int)
bool QSslSocket.setSocketDescriptor (self, int, QAbstractSocket.SocketState state = QAbstractSocket.ConnectedState, QIODevice.OpenMode mode = QIODevice.ReadWrite)
QSslSocket.setSslConfiguration (self, QSslConfiguration)
QSslConfiguration QSslSocket.sslConfiguration (self)
list-of-QSslError QSslSocket.sslErrors (self)
QSslSocket.startClientEncryption (self)
This method is also a Qt slot with the C++ signature void startClientEncryption().
QSslSocket.startServerEncryption (self)
This method is also a Qt slot with the C++ signature void startServerEncryption().
list-of-QSslCipher QSslSocket.supportedCiphers ()
bool QSslSocket.supportsSsl ()
list-of-QSslCertificate QSslSocket.systemCaCertificates ()
bool QSslSocket.waitForBytesWritten (self, int msecs = 30000)
bool QSslSocket.waitForConnected (self, int msecs = 30000)
bool QSslSocket.waitForDisconnected (self, int msecs = 30000)
bool QSslSocket.waitForEncrypted (self, int msecs = 30000)
bool QSslSocket.waitForReadyRead (self, int msecs = 30000)
int QSslSocket.writeData (self, str)
Qt Signal Documentation
void encrypted ()
This is the default overload of this signal.
void encryptedBytesWritten (qint64)
This is the default overload of this signal.
void modeChanged (QSslSocket::SslMode)
This is the default overload of this signal.
void peerVerifyError (const QSslError&)
This is the default overload of this signal.
void sslErrors (const QList<QSslError>&)
This is the default overload of this signal.