NAME
Qt::Network::QSslSocket
PUBLIC METHODS
- QSslSocket(QObject * parent)
- QSslSocket(QObject * parent = 0)
- ~QSslSocket()
- void abort()
- void addCaCertificate(const QSslCertificate & certificate)
- void addCaCertificates(const QList<QSslCertificate> & certificates)
- bool addCaCertificates(const QString & path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax)
- bool addCaCertificates(const QString & path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax = QRegExp::FixedString)
- bool addCaCertificates(const QString & path, QSsl::EncodingFormat format = QSsl::Pem, QRegExp::PatternSyntax syntax = QRegExp::FixedString)
- static void addDefaultCaCertificate(const QSslCertificate & certificate)
- static void addDefaultCaCertificates(const QList<QSslCertificate> & certificates)
- static bool addDefaultCaCertificates(const QString & path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax)
- static bool addDefaultCaCertificates(const QString & path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax = QRegExp::FixedString)
- static bool addDefaultCaCertificates(const QString & path, QSsl::EncodingFormat format = QSsl::Pem, QRegExp::PatternSyntax syntax = QRegExp::FixedString)
- bool atEnd()
- qint64 bytesAvailable()
- qint64 bytesToWrite()
- QList<QSslCertificate> caCertificates()
- bool canReadLine()
- QList<QSslCipher> ciphers()
- void close()
- void connectToHostEncrypted(const QString & hostName, quint16 port, QFlags<QIODevice::OpenModeFlag> mode)
- void connectToHostEncrypted(const QString & hostName, quint16 port, QFlags<QIODevice::OpenModeFlag> mode = QIODevice::ReadWrite)
- void connectToHostEncrypted(const QString & hostName, quint16 port, const QString & sslPeerName, QFlags<QIODevice::OpenModeFlag> mode)
- void connectToHostEncrypted(const QString & hostName, quint16 port, const QString & sslPeerName, QFlags<QIODevice::OpenModeFlag> mode = QIODevice::ReadWrite)
- static QList<QSslCertificate> defaultCaCertificates()
- static QList<QSslCipher> defaultCiphers()
- qint64 encryptedBytesAvailable()
- qint64 encryptedBytesToWrite()
- bool flush()
- void ignoreSslErrors()
- void ignoreSslErrors(const QList<QSslError> & errors)
- bool isEncrypted()
- QSslCertificate localCertificate()
- QSslSocket::SslMode mode()
- QSslCertificate peerCertificate()
- QList<QSslCertificate> peerCertificateChain()
- int peerVerifyDepth()
- QSslSocket::PeerVerifyMode peerVerifyMode()
- QSslKey privateKey()
- QSsl::SslProtocol protocol()
- QSslCipher sessionCipher()
- void setCaCertificates(const QList<QSslCertificate> & certificates)
- void setCiphers(const QList<QSslCipher> & ciphers)
- void setCiphers(const QString & ciphers)
- static void setDefaultCaCertificates(const QList<QSslCertificate> & certificates)
- static void setDefaultCiphers(const QList<QSslCipher> & ciphers)
- void setLocalCertificate(const QSslCertificate & certificate)
- void setLocalCertificate(const QString & fileName, QSsl::EncodingFormat format)
- void setLocalCertificate(const QString & fileName, QSsl::EncodingFormat format = QSsl::Pem)
- void setPeerVerifyDepth(int depth)
- void setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)
- void setPrivateKey(const QSslKey & key)
- void setPrivateKey(const QString & fileName, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format, const QByteArray & passPhrase)
- void setPrivateKey(const QString & fileName, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format, const QByteArray & passPhrase = QByteArray())
- void setPrivateKey(const QString & fileName, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format = QSsl::Pem, const QByteArray & passPhrase = QByteArray())
- void setPrivateKey(const QString & fileName, QSsl::KeyAlgorithm algorithm = QSsl::Rsa, QSsl::EncodingFormat format = QSsl::Pem, const QByteArray & passPhrase = QByteArray())
- void setProtocol(QSsl::SslProtocol protocol)
- void setReadBufferSize(qint64 size)
- bool setSocketDescriptor(int socketDescriptor, QAbstractSocket::SocketState state, QFlags<QIODevice::OpenModeFlag> openMode)
- bool setSocketDescriptor(int socketDescriptor, QAbstractSocket::SocketState state, QFlags<QIODevice::OpenModeFlag> openMode = QIODevice::ReadWrite)
- bool setSocketDescriptor(int socketDescriptor, QAbstractSocket::SocketState state = QAbstractSocket::ConnectedState, QFlags<QIODevice::OpenModeFlag> openMode = QIODevice::ReadWrite)
- void setSocketOption(QAbstractSocket::SocketOption option, const QVariant & value)
- void setSslConfiguration(const QSslConfiguration & config)
- QVariant socketOption(QAbstractSocket::SocketOption option)
- QSslConfiguration sslConfiguration()
- QList<QSslError> sslErrors()
- void startClientEncryption()
- void startServerEncryption()
- static QList<QSslCipher> supportedCiphers()
- static bool supportsSsl()
- static QList<QSslCertificate> systemCaCertificates()
- bool waitForBytesWritten(int msecs)
- bool waitForBytesWritten(int msecs = 30000)
- bool waitForConnected(int msecs)
- bool waitForConnected(int msecs = 30000)
- bool waitForDisconnected(int msecs)
- bool waitForDisconnected(int msecs = 30000)
- bool waitForEncrypted(int msecs)
- bool waitForEncrypted(int msecs = 30000)
- bool waitForReadyRead(int msecs)
- bool waitForReadyRead(int msecs = 30000)
ENUM VALUES
- UnencryptedMode
- SslClientMode
- SslServerMode
- VerifyNone
- QueryPeer
- VerifyPeer
- AutoVerifyPeer
EXPORT
None by default.
AUTHOR
Dongxu Ma <dongxu@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2011 - 2012 by Dongxu Ma
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.