- All Implemented Interfaces:
QtObjectInterface
,QtSignalBlockerInterface
,QtSignalEmitterInterface
,QtThreadAffineInterface
public class QSslSocket extends QTcpSocket
SSL encrypted socket for both clients and servers
Java wrapper for Qt class QSslSocket
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QSslSocket.PeerVerifyMode
Java wrapper for Qt enum QSslSocket::PeerVerifyModestatic class
QSslSocket.SslMode
Java wrapper for Qt enum QSslSocket::SslModeNested classes/interfaces inherited from class io.qt.network.QAbstractSocket
QAbstractSocket.BindFlag, QAbstractSocket.BindMode, QAbstractSocket.NetworkLayerProtocol, QAbstractSocket.PauseMode, QAbstractSocket.PauseModes, QAbstractSocket.SocketError, QAbstractSocket.SocketOption, QAbstractSocket.SocketState, QAbstractSocket.SocketType
Nested classes/interfaces inherited from class io.qt.core.QIODevice
QIODevice.OpenMode, QIODevice.OpenModeFlag
Nested classes/interfaces inherited from class io.qt.core.QObject
QObject.MultiSignal, QObject.PrivateSignal0, QObject.PrivateSignal1<A>, QObject.PrivateSignal2<A,B>, QObject.PrivateSignal3<A,B,C>, QObject.PrivateSignal4<A,B,C,D>, QObject.PrivateSignal5<A,B,C,D,E>, QObject.PrivateSignal6<A,B,C,D,E,F>, QObject.PrivateSignal7<A,B,C,D,E,F,G>, QObject.PrivateSignal8<A,B,C,D,E,F,G,H>, QObject.PrivateSignal9<A,B,C,D,E,F,G,H,I>, QObject.QDeclarativeConstructor, QObject.Signal0, QObject.Signal1<A>, QObject.Signal1Default1<A>, QObject.Signal2<A,B>, QObject.Signal2Default1<A,B>, QObject.Signal2Default2<A,B>, QObject.Signal3<A,B,C>, QObject.Signal3Default1<A,B,C>, QObject.Signal3Default2<A,B,C>, QObject.Signal3Default3<A,B,C>, QObject.Signal4<A,B,C,D>, QObject.Signal4Default1<A,B,C,D>, QObject.Signal4Default2<A,B,C,D>, QObject.Signal4Default3<A,B,C,D>, QObject.Signal4Default4<A,B,C,D>, QObject.Signal5<A,B,C,D,E>, QObject.Signal5Default1<A,B,C,D,E>, QObject.Signal5Default2<A,B,C,D,E>, QObject.Signal5Default3<A,B,C,D,E>, QObject.Signal5Default4<A,B,C,D,E>, QObject.Signal5Default5<A,B,C,D,E>, QObject.Signal6<A,B,C,D,E,F>, QObject.Signal6Default1<A,B,C,D,E,F>, QObject.Signal6Default2<A,B,C,D,E,F>, QObject.Signal6Default3<A,B,C,D,E,F>, QObject.Signal6Default4<A,B,C,D,E,F>, QObject.Signal6Default5<A,B,C,D,E,F>, QObject.Signal6Default6<A,B,C,D,E,F>, QObject.Signal7<A,B,C,D,E,F,G>, QObject.Signal7Default1<A,B,C,D,E,F,G>, QObject.Signal7Default2<A,B,C,D,E,F,G>, QObject.Signal7Default3<A,B,C,D,E,F,G>, QObject.Signal7Default4<A,B,C,D,E,F,G>, QObject.Signal7Default5<A,B,C,D,E,F,G>, QObject.Signal7Default6<A,B,C,D,E,F,G>, QObject.Signal7Default7<A,B,C,D,E,F,G>, QObject.Signal8<A,B,C,D,E,F,G,H>, QObject.Signal8Default1<A,B,C,D,E,F,G,H>, QObject.Signal8Default2<A,B,C,D,E,F,G,H>, QObject.Signal8Default3<A,B,C,D,E,F,G,H>, QObject.Signal8Default4<A,B,C,D,E,F,G,H>, QObject.Signal8Default5<A,B,C,D,E,F,G,H>, QObject.Signal8Default6<A,B,C,D,E,F,G,H>, QObject.Signal8Default7<A,B,C,D,E,F,G,H>, QObject.Signal8Default8<A,B,C,D,E,F,G,H>, QObject.Signal9<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default1<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default2<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default3<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default4<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default5<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default6<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default7<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default8<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default9<A,B,C,D,E,F,G,H,I>, QObject.SignalConfiguration
-
Field Summary
Fields Modifier and Type Field Description QObject.Signal0
encrypted
QObject.Signal1<@QtPrimitiveType Long>
encryptedBytesWritten
QObject.Signal1<QSslSocket.SslMode>
modeChanged
QObject.Signal0
newSessionTicketReceived
QObject.Signal1<QSslError>
peerVerifyError
QObject.Signal1<QSslPreSharedKeyAuthenticator>
preSharedKeyAuthenticationRequired
QObject.Signal1<List<QSslError>>
sslErrors
static QMetaObject
staticMetaObject
This variable stores the meta-object for the class.Fields inherited from class io.qt.network.QAbstractSocket
connected, disconnected, error, errorOccurred, hostFound, proxyAuthenticationRequired, stateChanged
Fields inherited from class io.qt.core.QIODevice
aboutToClose, bytesWritten, channelBytesWritten, channelReadyRead, readChannelFinished, readyRead
-
Constructor Summary
Constructors Modifier Constructor Description QSslSocket()
Overloaded constructor forQSslSocket(io.qt.core.QObject)
withparent = null
.QSslSocket(QObject parent)
protected
QSslSocket(QObject.QDeclarativeConstructor constructor)
Constructor for internal use only.protected
QSslSocket(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Methods inherited from class io.qt.network.QAbstractSocket
bind, bind, bind, bind, bind, bind, bind, bind, connectToHost, connectToHost, connectToHost, connectToHost, connectToHost, error, isSequential, isValid, localAddress, localPort, pauseMode, peerAddress, peerName, peerPort, protocolTag, proxy, readBufferSize, readLineData, setLocalAddress, setLocalPort, setPauseMode, setPauseMode, setPeerAddress, setPeerName, setPeerPort, setProtocolTag, setProxy, setSocketDescriptor, setSocketDescriptor, setSocketDescriptor, setSocketError, setSocketState, socketDescriptor, socketType, state, waitForConnected, waitForDisconnected
Methods inherited from class io.qt.core.QIODevice
commitTransaction, currentReadChannel, currentWriteChannel, errorString, fromDirectBuffer, fromInputStream, fromOutputStream, getByte, isOpen, isReadable, isTextModeEnabled, isTransactionStarted, isWritable, open, open, openMode, peek, peek, pos, putByte, read, read, readAll, readChannelCount, readLine, readLine, readLine, reset, rollbackTransaction, seek, setCurrentReadChannel, setCurrentWriteChannel, setErrorString, setOpenMode, setOpenMode, setTextModeEnabled, size, skip, startTransaction, ungetByte, write, write, writeChannelCount
Methods inherited from class io.qt.core.QObject
blockSignals, childEvent, children, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connectNotify, customEvent, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnectNotify, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, event, eventFilter, findChild, findChild, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, inherits, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, qt_metacast, receivers, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, startTimer, thread, timerEvent, toString, tr, tr, tr
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class. -
encrypted
-
encryptedBytesWritten
-
modeChanged
-
newSessionTicketReceived
-
peerVerifyError
-
preSharedKeyAuthenticationRequired
-
sslErrors
-
-
Constructor Details
-
QSslSocket
public QSslSocket()Overloaded constructor for
QSslSocket(io.qt.core.QObject)
withparent = null
. -
QSslSocket
-
QSslSocket
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QSslSocket
Constructor for internal use only. It is not allowed to call the declarative constructor from inside Java.
-
-
Method Details
-
abort
- Overrides:
abort
in classQAbstractSocket
-
addCaCertificate
Deprecated. -
addCaCertificates
@Deprecated @QtUninvokable public final void addCaCertificates(Collection<QSslCertificate> certificates)Deprecated. -
addCaCertificates
@Deprecated @QtUninvokable public final boolean addCaCertificates(String path, QSsl.EncodingFormat format)Deprecated.Overloaded function for
addCaCertificates(java.lang.String, io.qt.network.QSsl.EncodingFormat, io.qt.core.QRegExp.PatternSyntax)
withsyntax = io.qt.core.QRegExp.PatternSyntax.FixedString
. -
addCaCertificates
Deprecated.Overloaded function for
addCaCertificates(java.lang.String, io.qt.network.QSsl.EncodingFormat, io.qt.core.QRegExp.PatternSyntax)
with:
format = io.qt.network.QSsl.EncodingFormat.Pem
syntax = io.qt.core.QRegExp.PatternSyntax.FixedString
-
addCaCertificates
@Deprecated @QtUninvokable public final boolean addCaCertificates(String path, QSsl.EncodingFormat format, QRegExp.PatternSyntax syntax)Deprecated. -
caCertificates
Deprecated.UseQSslConfiguration.caCertificates()
instead -
ciphers
Deprecated.UseQSslConfiguration.ciphers()
instead -
connectToHostEncrypted
@QtUninvokable public final void connectToHostEncrypted(String hostName, short port, QIODevice.OpenMode mode)Overloaded function for
connectToHostEncrypted(java.lang.String, short, io.qt.core.QIODevice.OpenMode, io.qt.network.QAbstractSocket.NetworkLayerProtocol)
withprotocol = io.qt.network.QAbstractSocket.NetworkLayerProtocol.AnyIPProtocol
. -
connectToHostEncrypted
Overloaded function for
connectToHostEncrypted(java.lang.String, short, io.qt.core.QIODevice.OpenMode, io.qt.network.QAbstractSocket.NetworkLayerProtocol)
with:
mode = new io.qt.core.QIODevice.OpenMode(3)
protocol = io.qt.network.QAbstractSocket.NetworkLayerProtocol.AnyIPProtocol
-
connectToHostEncrypted
@QtUninvokable public final void connectToHostEncrypted(String hostName, short port, QIODevice.OpenMode mode, QAbstractSocket.NetworkLayerProtocol protocol) -
connectToHostEncrypted
@QtUninvokable public final void connectToHostEncrypted(String hostName, short port, String sslPeerName, QIODevice.OpenMode mode)Overloaded function for
connectToHostEncrypted(java.lang.String, short, java.lang.String, io.qt.core.QIODevice.OpenMode, io.qt.network.QAbstractSocket.NetworkLayerProtocol)
withprotocol = io.qt.network.QAbstractSocket.NetworkLayerProtocol.AnyIPProtocol
. -
connectToHostEncrypted
@QtUninvokable public final void connectToHostEncrypted(String hostName, short port, String sslPeerName)Overloaded function for
connectToHostEncrypted(java.lang.String, short, java.lang.String, io.qt.core.QIODevice.OpenMode, io.qt.network.QAbstractSocket.NetworkLayerProtocol)
with:
mode = new io.qt.core.QIODevice.OpenMode(3)
protocol = io.qt.network.QAbstractSocket.NetworkLayerProtocol.AnyIPProtocol
-
connectToHostEncrypted
@QtUninvokable public final void connectToHostEncrypted(String hostName, short port, String sslPeerName, QIODevice.OpenMode mode, QAbstractSocket.NetworkLayerProtocol protocol) -
encryptedBytesAvailable
-
encryptedBytesToWrite
-
flush
- Overrides:
flush
in classQAbstractSocket
-
ignoreSslErrors
public final void ignoreSslErrors() -
ignoreSslErrors
-
isEncrypted
-
localCertificate
-
localCertificateChain
-
mode
-
ocspResponses
-
peerCertificate
-
peerCertificateChain
-
peerVerifyDepth
-
peerVerifyMode
-
peerVerifyName
-
privateKey
-
protocol
-
sessionCipher
-
sessionProtocol
-
setCaCertificates
@Deprecated @QtUninvokable public final void setCaCertificates(Collection<QSslCertificate> certificates)Deprecated. -
setCiphers
Deprecated. -
setCiphers
Deprecated. -
setLocalCertificate
-
setLocalCertificate
Overloaded function for
setLocalCertificate(java.lang.String, io.qt.network.QSsl.EncodingFormat)
withformat = io.qt.network.QSsl.EncodingFormat.Pem
. -
setLocalCertificate
-
setLocalCertificateChain
-
setPeerVerifyDepth
-
setPeerVerifyMode
-
setPeerVerifyName
-
setPrivateKey
-
setPrivateKey
@QtUninvokable public final void setPrivateKey(String fileName, QSsl.KeyAlgorithm algorithm, QSsl.EncodingFormat format)Overloaded function for
setPrivateKey(java.lang.String, io.qt.network.QSsl.KeyAlgorithm, io.qt.network.QSsl.EncodingFormat, io.qt.core.QByteArray)
withpassPhrase = new io.qt.core.QByteArray()
. -
setPrivateKey
Overloaded function for
setPrivateKey(java.lang.String, io.qt.network.QSsl.KeyAlgorithm, io.qt.network.QSsl.EncodingFormat, io.qt.core.QByteArray)
with:
format = io.qt.network.QSsl.EncodingFormat.Pem
passPhrase = new io.qt.core.QByteArray()
-
setPrivateKey
Overloaded function for
setPrivateKey(java.lang.String, io.qt.network.QSsl.KeyAlgorithm, io.qt.network.QSsl.EncodingFormat, io.qt.core.QByteArray)
with:
algorithm = io.qt.network.QSsl.KeyAlgorithm.Rsa
format = io.qt.network.QSsl.EncodingFormat.Pem
passPhrase = new io.qt.core.QByteArray()
-
setPrivateKey
@QtUninvokable public final void setPrivateKey(String fileName, QSsl.KeyAlgorithm algorithm, QSsl.EncodingFormat format, QByteArray passPhrase) -
setProtocol
-
setSslConfiguration
-
sslConfiguration
-
sslErrors
Deprecated.UsesslHandshakeErrors()
instead -
sslHandshakeErrors
-
startClientEncryption
public final void startClientEncryption() -
startServerEncryption
public final void startServerEncryption() -
waitForEncrypted
Overloaded function for
waitForEncrypted(int)
withmsecs = 30000
. -
waitForEncrypted
-
atEnd
- Overrides:
atEnd
in classQAbstractSocket
-
bytesAvailable
- Overrides:
bytesAvailable
in classQAbstractSocket
-
bytesToWrite
- Overrides:
bytesToWrite
in classQAbstractSocket
-
canReadLine
- Overrides:
canReadLine
in classQAbstractSocket
-
close
- Overrides:
close
in classQAbstractSocket
-
connectToHost
@QtUninvokable public void connectToHost(String hostName, int port, QIODevice.OpenMode openMode, QAbstractSocket.NetworkLayerProtocol protocol)- Overrides:
connectToHost
in classQAbstractSocket
-
disconnectFromHost
- Overrides:
disconnectFromHost
in classQAbstractSocket
-
readData
- Overrides:
readData
in classQAbstractSocket
-
resume
- Overrides:
resume
in classQAbstractSocket
-
setReadBufferSize
- Overrides:
setReadBufferSize
in classQAbstractSocket
-
setSocketDescriptor
@QtUninvokable public boolean setSocketDescriptor(long socketDescriptor, QAbstractSocket.SocketState state, QIODevice.OpenMode openMode)- Overrides:
setSocketDescriptor
in classQAbstractSocket
-
setSocketOption
-
socketOption
-
waitForBytesWritten
- Overrides:
waitForBytesWritten
in classQAbstractSocket
-
waitForConnected
- Overrides:
waitForConnected
in classQAbstractSocket
-
waitForDisconnected
- Overrides:
waitForDisconnected
in classQAbstractSocket
-
waitForReadyRead
- Overrides:
waitForReadyRead
in classQAbstractSocket
-
writeData
- Overrides:
writeData
in classQAbstractSocket
-
addDefaultCaCertificate
Deprecated. -
addDefaultCaCertificates
Deprecated. -
addDefaultCaCertificates
@Deprecated public static boolean addDefaultCaCertificates(String path, QSsl.EncodingFormat format)Deprecated.Overloaded function for
addDefaultCaCertificates(java.lang.String, io.qt.network.QSsl.EncodingFormat, io.qt.core.QRegExp.PatternSyntax)
withsyntax = io.qt.core.QRegExp.PatternSyntax.FixedString
. -
addDefaultCaCertificates
Deprecated.Overloaded function for
addDefaultCaCertificates(java.lang.String, io.qt.network.QSsl.EncodingFormat, io.qt.core.QRegExp.PatternSyntax)
with:
format = io.qt.network.QSsl.EncodingFormat.Pem
syntax = io.qt.core.QRegExp.PatternSyntax.FixedString
-
addDefaultCaCertificates
@Deprecated public static boolean addDefaultCaCertificates(String path, QSsl.EncodingFormat format, QRegExp.PatternSyntax syntax)Deprecated. -
defaultCaCertificates
Deprecated. -
defaultCiphers
Deprecated. -
setDefaultCaCertificates
Deprecated. -
setDefaultCiphers
Deprecated. -
sslLibraryBuildVersionNumber
public static int sslLibraryBuildVersionNumber() -
sslLibraryBuildVersionString
-
sslLibraryVersionNumber
public static int sslLibraryVersionNumber() -
sslLibraryVersionString
-
supportedCiphers
Deprecated.UseQSslConfiguration.supportedCiphers()
instead -
supportsSsl
public static boolean supportsSsl() -
systemCaCertificates
Deprecated.UseQSslConfiguration.systemCaCertificates()
instead
-