- All Implemented Interfaces:
QIODeviceBase
,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.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.QBooleanProperty, QObject.QByteProperty, QObject.QCharProperty, QObject.QComputedBooleanProperty, QObject.QComputedByteProperty, QObject.QComputedCharProperty, QObject.QComputedDoubleProperty, QObject.QComputedFloatProperty, QObject.QComputedIntProperty, QObject.QComputedLongProperty, QObject.QComputedProperty<T>, QObject.QComputedShortProperty, QObject.QDeclarativeConstructor, QObject.QDoubleProperty, QObject.QFloatProperty, QObject.QIntProperty, QObject.QLongProperty, QObject.QProperty<T>, QObject.QShortProperty, 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
Nested classes/interfaces inherited from interface io.qt.core.QIODeviceBase
QIODeviceBase.OpenMode, QIODeviceBase.OpenModeFlag
-
Field Summary
Fields Modifier and Type Field Description QObject.Signal3<QSsl.AlertLevel,QSsl.AlertType,String>
alertReceived
QObject.Signal3<QSsl.AlertLevel,QSsl.AlertType,String>
alertSent
QObject.Signal0
encrypted
QObject.Signal1<@QtPrimitiveType Long>
encryptedBytesWritten
QObject.Signal1<QSslError>
handshakeInterruptedOnError
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, 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
abort, bind, bind, bind, bind, bind, bind, bind, bind, connectToHost, connectToHost, connectToHost, connectToHost, connectToHost, error, flush, 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, 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. -
alertReceived
-
alertSent
-
encrypted
-
encryptedBytesWritten
-
handshakeInterruptedOnError
-
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
-
connectToHostEncrypted
@QtUninvokable public final void connectToHostEncrypted(String hostName, short port, QIODeviceBase.OpenMode mode)Overloaded function for
connectToHostEncrypted(java.lang.String, short, io.qt.core.QIODeviceBase.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.QIODeviceBase.OpenMode, io.qt.network.QAbstractSocket.NetworkLayerProtocol)
with:
mode = new io.qt.core.QIODeviceBase.OpenMode(3)
protocol = io.qt.network.QAbstractSocket.NetworkLayerProtocol.AnyIPProtocol
-
connectToHostEncrypted
@QtUninvokable public final void connectToHostEncrypted(String hostName, short port, QIODeviceBase.OpenMode mode, QAbstractSocket.NetworkLayerProtocol protocol) -
connectToHostEncrypted
@QtUninvokable public final void connectToHostEncrypted(String hostName, short port, String sslPeerName, QIODeviceBase.OpenMode mode)Overloaded function for
connectToHostEncrypted(java.lang.String, short, java.lang.String, io.qt.core.QIODeviceBase.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.QIODeviceBase.OpenMode, io.qt.network.QAbstractSocket.NetworkLayerProtocol)
with:
mode = new io.qt.core.QIODeviceBase.OpenMode(3)
protocol = io.qt.network.QAbstractSocket.NetworkLayerProtocol.AnyIPProtocol
-
connectToHostEncrypted
@QtUninvokable public final void connectToHostEncrypted(String hostName, short port, String sslPeerName, QIODeviceBase.OpenMode mode, QAbstractSocket.NetworkLayerProtocol protocol) -
continueInterruptedHandshake
-
encryptedBytesAvailable
-
encryptedBytesToWrite
-
ignoreSslErrors
public final void ignoreSslErrors() -
ignoreSslErrors
-
isEncrypted
-
localCertificate
-
localCertificateChain
-
mode
-
ocspResponses
-
peerCertificate
-
peerCertificateChain
-
peerVerifyDepth
-
peerVerifyMode
-
peerVerifyName
-
privateKey
-
protocol
-
sessionCipher
-
sessionProtocol
-
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
-
sslHandshakeErrors
-
startClientEncryption
public final void startClientEncryption() -
startServerEncryption
public final void startServerEncryption() -
waitForEncrypted
Overloaded function for
waitForEncrypted(int)
withmsecs = 30000
. -
waitForEncrypted
-
atEnd
-
bytesAvailable
- Overrides:
bytesAvailable
in classQAbstractSocket
-
bytesToWrite
- Overrides:
bytesToWrite
in classQAbstractSocket
-
canReadLine
- Overrides:
canReadLine
in classQIODevice
-
close
- Overrides:
close
in classQAbstractSocket
-
connectToHost
@QtUninvokable public void connectToHost(String hostName, int port, QIODeviceBase.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, QIODeviceBase.OpenMode openMode)- Overrides:
setSocketDescriptor
in classQAbstractSocket
-
setSocketOption
-
skipData
- Overrides:
skipData
in classQAbstractSocket
-
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
-
sslLibraryBuildVersionNumber
public static int sslLibraryBuildVersionNumber() -
sslLibraryBuildVersionString
-
sslLibraryVersionNumber
public static int sslLibraryVersionNumber() -
sslLibraryVersionString
-
supportsSsl
public static boolean supportsSsl()
-