- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Holds the configuration and state of an SSL connection
Java wrapper for Qt class QSslConfiguration
- Since:
- This class was introduced in Qt 4.4.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQSslConfiguration::NextProtocolNegotiationStatus
-
Field Summary
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addCaCertificate
(QSslCertificate certificate) final boolean
addCaCertificates
(String path) final boolean
addCaCertificates
(String path, QSsl.EncodingFormat format) Overloaded function foraddCaCertificates(java.lang.String, io.qt.network.QSsl.EncodingFormat, io.qt.network.QSslCertificate.PatternSyntax)
withsyntax = io.qt.network.QSslCertificate.PatternSyntax.FixedString
.final boolean
addCaCertificates
(String path, QSsl.EncodingFormat format, QSslCertificate.PatternSyntax syntax) final void
addCaCertificates
(Collection<? extends QSslCertificate> certificates) final QList<QByteArray>
final void
assign
(QSslConfiguration other) final QMap<QByteArray,
Object> final QList<QSslCertificate>
final QList<QSslCipher>
ciphers()
clone()
Creates and returns a copy of this object.static QSslConfiguration
static QSslConfiguration
final boolean
final QVector<QSslEllipticCurve>
final QSslKey
final boolean
equals
(QSslConfiguration other) boolean
int
hashCode()
Returns the objects's hash code computed byqHash(QSslConfiguration)
.final boolean
isNull()
final QSslCertificate
final QList<QSslCertificate>
final QByteArray
final boolean
final QSslCertificate
final QList<QSslCertificate>
final int
final QByteArray
final QSslKey
final QSsl.SslProtocol
protocol()
final QSslCipher
final QSsl.SslProtocol
final QByteArray
final int
final void
setAllowedNextProtocols
(Collection<? extends QByteArray> protocols) final void
Overloaded function forsetBackendConfiguration(java.util.Map)
withbackendConfiguration = java.util.Collections.emptyMap()
.final void
setBackendConfiguration
(Map<? extends QByteArray, ? extends Object> backendConfiguration) final void
setBackendConfigurationOption
(byte [] name, Object value) Overloaded function forsetBackendConfigurationOption(io.qt.core.QByteArray, java.lang.Object)
.final void
setBackendConfigurationOption
(QByteArray name, Object value) final void
setCaCertificates
(Collection<? extends QSslCertificate> certificates) final void
setCiphers
(Collection<? extends QSslCipher> ciphers) static void
setDefaultConfiguration
(QSslConfiguration configuration) static void
setDefaultDtlsConfiguration
(QSslConfiguration configuration) final void
final void
setDtlsCookieVerificationEnabled
(boolean enable) final void
setEllipticCurves
(Collection<? extends QSslEllipticCurve> curves) final void
setLocalCertificate
(QSslCertificate certificate) final void
setLocalCertificateChain
(Collection<? extends QSslCertificate> localChain) final void
setOcspStaplingEnabled
(boolean enable) final void
setPeerVerifyDepth
(int depth) final void
final void
setPreSharedKeyIdentityHint
(byte [] hint) Overloaded function forsetPreSharedKeyIdentityHint(io.qt.core.QByteArray)
.final void
final void
setPrivateKey
(QSslKey key) final void
setProtocol
(QSsl.SslProtocol protocol) final void
setSessionTicket
(byte [] sessionTicket) Overloaded function forsetSessionTicket(io.qt.core.QByteArray)
.final void
setSessionTicket
(QByteArray sessionTicket) final void
setSslOption
(QSsl.SslOption option, boolean on) static QList<QSslCipher>
static QVector<QSslEllipticCurve>
final void
swap
(QSslConfiguration other) static QList<QSslCertificate>
final boolean
testSslOption
(QSsl.SslOption option) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
ALPNProtocolHTTP2
-
NextProtocolHttp1_1
-
NextProtocolSpdy3_0
-
-
Constructor Details
-
QSslConfiguration
public QSslConfiguration() -
QSslConfiguration
- Parameters:
other
-
-
-
Method Details
-
addCaCertificate
- Parameters:
certificate
-- Since:
- This function was introduced in Qt 5.15.
-
addCaCertificates
@QtUninvokable public final void addCaCertificates(Collection<? extends QSslCertificate> certificates) - Parameters:
certificates
-- Since:
- This function was introduced in Qt 5.15.
-
addCaCertificates
@QtUninvokable public final boolean addCaCertificates(String path, QSsl.EncodingFormat format, QSslCertificate.PatternSyntax syntax) See
QSslConfiguration::
addCaCertificates(QString, QSsl::EncodingFormat, QSslCertificate::PatternSyntax) - Parameters:
path
-format
-syntax
-- Returns:
- Since:
- This function was introduced in Qt 5.15.
-
allowedNextProtocols
- Returns:
- Since:
- This function was introduced in Qt 5.3.
-
backendConfiguration
- Returns:
- Since:
- This function was introduced in Qt 5.11.
-
caCertificates
- Returns:
-
ciphers
- Returns:
-
diffieHellmanParameters
- Returns:
- Since:
- This function was introduced in Qt 5.8.
-
dtlsCookieVerificationEnabled
- Returns:
-
ellipticCurves
- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
ephemeralServerKey
- Returns:
- Since:
- This function was introduced in Qt 5.7.
-
isNull
- Returns:
-
localCertificate
- Returns:
-
localCertificateChain
- Returns:
- Since:
- This function was introduced in Qt 5.1.
-
nextNegotiatedProtocol
- Returns:
- Since:
- This function was introduced in Qt 5.3.
-
nextProtocolNegotiationStatus
@QtUninvokable public final QSslConfiguration.NextProtocolNegotiationStatus nextProtocolNegotiationStatus()- Returns:
- Since:
- This function was introduced in Qt 5.3.
-
ocspStaplingEnabled
- Returns:
- Since:
- This function was introduced in Qt 5.13.
-
assign
- Parameters:
other
-
-
equals
- Parameters:
other
-- Returns:
-
peerCertificate
- Returns:
-
peerCertificateChain
- Returns:
-
peerVerifyDepth
- Returns:
-
peerVerifyMode
- Returns:
-
privateKey
- Returns:
-
protocol
- Returns:
-
sessionCipher
- Returns:
-
sessionProtocol
- Returns:
- Since:
- This function was introduced in Qt 5.4.
-
sessionTicket
- Returns:
- Since:
- This function was introduced in Qt 5.2.
-
sessionTicketLifeTimeHint
- Returns:
- Since:
- This function was introduced in Qt 5.2.
-
setAllowedNextProtocols
@QtUninvokable public final void setAllowedNextProtocols(Collection<? extends QByteArray> protocols) - Parameters:
protocols
-- Since:
- This function was introduced in Qt 5.3.
-
setBackendConfiguration
@QtUninvokable public final void setBackendConfiguration(Map<? extends QByteArray, ? extends Object> backendConfiguration) - Parameters:
backendConfiguration
-- Since:
- This function was introduced in Qt 5.11.
-
setBackendConfigurationOption
- Parameters:
name
-value
-- Since:
- This function was introduced in Qt 5.11.
-
setCaCertificates
@QtUninvokable public final void setCaCertificates(Collection<? extends QSslCertificate> certificates) - Parameters:
certificates
-
-
setCiphers
- Parameters:
ciphers
-
-
setDiffieHellmanParameters
- Parameters:
dhparams
-- Since:
- This function was introduced in Qt 5.8.
-
setDtlsCookieVerificationEnabled
- Parameters:
enable
-
-
setEllipticCurves
- Parameters:
curves
-- Since:
- This function was introduced in Qt 5.5.
-
setLocalCertificate
- Parameters:
certificate
-
-
setLocalCertificateChain
@QtUninvokable public final void setLocalCertificateChain(Collection<? extends QSslCertificate> localChain) - Parameters:
localChain
-- Since:
- This function was introduced in Qt 5.1.
-
setOcspStaplingEnabled
- Parameters:
enable
-- Since:
- This function was introduced in Qt 5.13.
-
setPeerVerifyDepth
- Parameters:
depth
-
-
setPeerVerifyMode
- Parameters:
mode
-
-
setPrivateKey
- Parameters:
key
-
-
setProtocol
- Parameters:
protocol
-
-
setSessionTicket
- Parameters:
sessionTicket
-- Since:
- This function was introduced in Qt 5.2.
-
setSslOption
- Parameters:
option
-on
-
-
swap
- Parameters:
other
-- Since:
- This function was introduced in Qt 5.0.
-
testSslOption
- Parameters:
option
-- Returns:
- Since:
- This function was introduced in Qt 4.8.
-
defaultConfiguration
- Returns:
-
defaultDtlsConfiguration
- Returns:
-
setDefaultConfiguration
- Parameters:
configuration
-
-
setDefaultDtlsConfiguration
- Parameters:
configuration
-
-
supportedCiphers
- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
supportedEllipticCurves
- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
systemCaCertificates
- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QSslConfiguration)
. -
clone
Creates and returns a copy of this object.
-
addCaCertificates
Overloaded function for
addCaCertificates(java.lang.String, io.qt.network.QSsl.EncodingFormat, io.qt.network.QSslCertificate.PatternSyntax)
withsyntax = io.qt.network.QSslCertificate.PatternSyntax.FixedString
. -
addCaCertificates
Overloaded function for
addCaCertificates(java.lang.String, io.qt.network.QSsl.EncodingFormat, io.qt.network.QSslCertificate.PatternSyntax)
with:
format = io.qt.network.QSsl.EncodingFormat.Pem
syntax = io.qt.network.QSslCertificate.PatternSyntax.FixedString
-
setBackendConfiguration
Overloaded function for
setBackendConfiguration(java.util.Map)
withbackendConfiguration = java.util.Collections.emptyMap()
. -
setBackendConfigurationOption
Overloaded function for
setBackendConfigurationOption(io.qt.core.QByteArray, java.lang.Object)
. -
setSessionTicket
Overloaded function for
setSessionTicket(io.qt.core.QByteArray)
.
-