KLayout 0.29.1 (2024-05-13 48b32733c) [master]

API reference - Class QSslConfiguration

Notation used in Ruby API documentation

Module: QtNetwork

Description: Binding of QSslConfiguration

Public constructors

new QSslConfigurationnewConstructor QSslConfiguration::QSslConfiguration()
new QSslConfigurationnew(const QSslConfiguration other)Constructor QSslConfiguration::QSslConfiguration(const QSslConfiguration &other)

Public methods

[const]bool!=(const QSslConfiguration other)Method bool QSslConfiguration::operator!=(const QSslConfiguration &other)
[const]bool==(const QSslConfiguration other)Method bool QSslConfiguration::operator==(const QSslConfiguration &other)
void_assign(const QSslConfiguration other)Assigns another object to self
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
QSslConfigurationassign(const QSslConfiguration other)Method QSslConfiguration &QSslConfiguration::operator=(const QSslConfiguration &other)
[const]QSslCertificate[]caCertificatesMethod QList<QSslCertificate> QSslConfiguration::caCertificates()
voidcaCertificates=(QSslCertificate[] certificates)Method void QSslConfiguration::setCaCertificates(const QList<QSslCertificate> &certificates)
[const]QSslCipher[]ciphersMethod QList<QSslCipher> QSslConfiguration::ciphers()
voidciphers=(QSslCipher[] ciphers)Method void QSslConfiguration::setCiphers(const QList<QSslCipher> &ciphers)
[const]new QSslConfiguration ptrdupCreates a copy of self
[const]boolisNull?Method bool QSslConfiguration::isNull()
[const]QSslCertificatelocalCertificateMethod QSslCertificate QSslConfiguration::localCertificate()
voidlocalCertificate=(const QSslCertificate certificate)Method void QSslConfiguration::setLocalCertificate(const QSslCertificate &certificate)
[const]QSslCertificatepeerCertificateMethod QSslCertificate QSslConfiguration::peerCertificate()
[const]QSslCertificate[]peerCertificateChainMethod QList<QSslCertificate> QSslConfiguration::peerCertificateChain()
[const]intpeerVerifyDepthMethod int QSslConfiguration::peerVerifyDepth()
voidpeerVerifyDepth=(int depth)Method void QSslConfiguration::setPeerVerifyDepth(int depth)
[const]QSslSocket_PeerVerifyModepeerVerifyModeMethod QSslSocket::PeerVerifyMode QSslConfiguration::peerVerifyMode()
voidpeerVerifyMode=(const QSslSocket_PeerVerifyMode mode)Method void QSslConfiguration::setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)
[const]QSslKeyprivateKeyMethod QSslKey QSslConfiguration::privateKey()
voidprivateKey=(const QSslKey key)Method void QSslConfiguration::setPrivateKey(const QSslKey &key)
[const]QSsl_SslProtocolprotocolMethod QSsl::SslProtocol QSslConfiguration::protocol()
voidprotocol=(const QSsl_SslProtocol protocol)Method void QSslConfiguration::setProtocol(QSsl::SslProtocol protocol)
[const]QSslCiphersessionCipherMethod QSslCipher QSslConfiguration::sessionCipher()
voidsetCaCertificates(QSslCertificate[] certificates)Method void QSslConfiguration::setCaCertificates(const QList<QSslCertificate> &certificates)
voidsetCiphers(QSslCipher[] ciphers)Method void QSslConfiguration::setCiphers(const QList<QSslCipher> &ciphers)
voidsetLocalCertificate(const QSslCertificate certificate)Method void QSslConfiguration::setLocalCertificate(const QSslCertificate &certificate)
voidsetPeerVerifyDepth(int depth)Method void QSslConfiguration::setPeerVerifyDepth(int depth)
voidsetPeerVerifyMode(const QSslSocket_PeerVerifyMode mode)Method void QSslConfiguration::setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)
voidsetPrivateKey(const QSslKey key)Method void QSslConfiguration::setPrivateKey(const QSslKey &key)
voidsetProtocol(const QSsl_SslProtocol protocol)Method void QSslConfiguration::setProtocol(QSsl::SslProtocol protocol)

Public static methods and constants

QSslConfigurationdefaultConfigurationStatic method QSslConfiguration QSslConfiguration::defaultConfiguration()
voiddefaultConfiguration=(const QSslConfiguration configuration)Static method void QSslConfiguration::setDefaultConfiguration(const QSslConfiguration &configuration)
voidsetDefaultConfiguration(const QSslConfiguration configuration)Static method void QSslConfiguration::setDefaultConfiguration(const QSslConfiguration &configuration)

Deprecated methods (protected, public, static, non-static and constructors)

voidcreateUse of this method is deprecated. Use _create instead
voiddestroyUse of this method is deprecated. Use _destroy instead
[const]booldestroyed?Use of this method is deprecated. Use _destroyed? instead
[const]boolis_const_object?Use of this method is deprecated. Use _is_const_object? instead

Detailed description

!=

Signature: [const] bool != (const QSslConfiguration other)

Description: Method bool QSslConfiguration::operator!=(const QSslConfiguration &other)

==

Signature: [const] bool == (const QSslConfiguration other)

Description: Method bool QSslConfiguration::operator==(const QSslConfiguration &other)

_assign

Signature: void _assign (const QSslConfiguration other)

Description: Assigns another object to self

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

assign

Signature: QSslConfiguration assign (const QSslConfiguration other)

Description: Method QSslConfiguration &QSslConfiguration::operator=(const QSslConfiguration &other)

caCertificates

Signature: [const] QSslCertificate[] caCertificates

Description: Method QList<QSslCertificate> QSslConfiguration::caCertificates()

Python specific notes:
The object exposes a readable attribute 'caCertificates'. This is the getter.

caCertificates=

Signature: void caCertificates= (QSslCertificate[] certificates)

Description: Method void QSslConfiguration::setCaCertificates(const QList<QSslCertificate> &certificates)

Python specific notes:
The object exposes a writable attribute 'caCertificates'. This is the setter.

ciphers

Signature: [const] QSslCipher[] ciphers

Description: Method QList<QSslCipher> QSslConfiguration::ciphers()

Python specific notes:
The object exposes a readable attribute 'ciphers'. This is the getter.

ciphers=

Signature: void ciphers= (QSslCipher[] ciphers)

Description: Method void QSslConfiguration::setCiphers(const QList<QSslCipher> &ciphers)

Python specific notes:
The object exposes a writable attribute 'ciphers'. This is the setter.

create

Signature: void create

Description: Ensures the C++ object is created

Use of this method is deprecated. Use _create instead

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

defaultConfiguration

Signature: [static] QSslConfiguration defaultConfiguration

Description: Static method QSslConfiguration QSslConfiguration::defaultConfiguration()

This method is static and can be called without an instance.

Python specific notes:
The object exposes a readable attribute 'defaultConfiguration'. This is the getter.

defaultConfiguration=

Signature: [static] void defaultConfiguration= (const QSslConfiguration configuration)

Description: Static method void QSslConfiguration::setDefaultConfiguration(const QSslConfiguration &configuration)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'defaultConfiguration'. This is the setter.

destroy

Signature: void destroy

Description: Explicitly destroys the object

Use of this method is deprecated. Use _destroy instead

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

destroyed?

Signature: [const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

Use of this method is deprecated. Use _destroyed? instead

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

dup

Signature: [const] new QSslConfiguration ptr dup

Description: Creates a copy of self

Python specific notes:
This method also implements '__copy__' and '__deepcopy__'.

isNull?

Signature: [const] bool isNull?

Description: Method bool QSslConfiguration::isNull()

is_const_object?

Signature: [const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

Use of this method is deprecated. Use _is_const_object? instead

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

localCertificate

Signature: [const] QSslCertificate localCertificate

Description: Method QSslCertificate QSslConfiguration::localCertificate()

Python specific notes:
The object exposes a readable attribute 'localCertificate'. This is the getter.

localCertificate=

Signature: void localCertificate= (const QSslCertificate certificate)

Description: Method void QSslConfiguration::setLocalCertificate(const QSslCertificate &certificate)

Python specific notes:
The object exposes a writable attribute 'localCertificate'. This is the setter.

new

(1) Signature: [static] new QSslConfiguration new

Description: Constructor QSslConfiguration::QSslConfiguration()

This method creates an object of class QSslConfiguration.

Python specific notes:
This method is the default initializer of the object.

(2) Signature: [static] new QSslConfiguration new (const QSslConfiguration other)

Description: Constructor QSslConfiguration::QSslConfiguration(const QSslConfiguration &other)

This method creates an object of class QSslConfiguration.

Python specific notes:
This method is the default initializer of the object.

peerCertificate

Signature: [const] QSslCertificate peerCertificate

Description: Method QSslCertificate QSslConfiguration::peerCertificate()

peerCertificateChain

Signature: [const] QSslCertificate[] peerCertificateChain

Description: Method QList<QSslCertificate> QSslConfiguration::peerCertificateChain()

peerVerifyDepth

Signature: [const] int peerVerifyDepth

Description: Method int QSslConfiguration::peerVerifyDepth()

Python specific notes:
The object exposes a readable attribute 'peerVerifyDepth'. This is the getter.

peerVerifyDepth=

Signature: void peerVerifyDepth= (int depth)

Description: Method void QSslConfiguration::setPeerVerifyDepth(int depth)

Python specific notes:
The object exposes a writable attribute 'peerVerifyDepth'. This is the setter.

peerVerifyMode

Signature: [const] QSslSocket_PeerVerifyMode peerVerifyMode

Description: Method QSslSocket::PeerVerifyMode QSslConfiguration::peerVerifyMode()

Python specific notes:
The object exposes a readable attribute 'peerVerifyMode'. This is the getter.

peerVerifyMode=

Signature: void peerVerifyMode= (const QSslSocket_PeerVerifyMode mode)

Description: Method void QSslConfiguration::setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)

Python specific notes:
The object exposes a writable attribute 'peerVerifyMode'. This is the setter.

privateKey

Signature: [const] QSslKey privateKey

Description: Method QSslKey QSslConfiguration::privateKey()

Python specific notes:
The object exposes a readable attribute 'privateKey'. This is the getter.

privateKey=

Signature: void privateKey= (const QSslKey key)

Description: Method void QSslConfiguration::setPrivateKey(const QSslKey &key)

Python specific notes:
The object exposes a writable attribute 'privateKey'. This is the setter.

protocol

Signature: [const] QSsl_SslProtocol protocol

Description: Method QSsl::SslProtocol QSslConfiguration::protocol()

Python specific notes:
The object exposes a readable attribute 'protocol'. This is the getter.

protocol=

Signature: void protocol= (const QSsl_SslProtocol protocol)

Description: Method void QSslConfiguration::setProtocol(QSsl::SslProtocol protocol)

Python specific notes:
The object exposes a writable attribute 'protocol'. This is the setter.

sessionCipher

Signature: [const] QSslCipher sessionCipher

Description: Method QSslCipher QSslConfiguration::sessionCipher()

setCaCertificates

Signature: void setCaCertificates (QSslCertificate[] certificates)

Description: Method void QSslConfiguration::setCaCertificates(const QList<QSslCertificate> &certificates)

Python specific notes:
The object exposes a writable attribute 'caCertificates'. This is the setter.

setCiphers

Signature: void setCiphers (QSslCipher[] ciphers)

Description: Method void QSslConfiguration::setCiphers(const QList<QSslCipher> &ciphers)

Python specific notes:
The object exposes a writable attribute 'ciphers'. This is the setter.

setDefaultConfiguration

Signature: [static] void setDefaultConfiguration (const QSslConfiguration configuration)

Description: Static method void QSslConfiguration::setDefaultConfiguration(const QSslConfiguration &configuration)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'defaultConfiguration'. This is the setter.

setLocalCertificate

Signature: void setLocalCertificate (const QSslCertificate certificate)

Description: Method void QSslConfiguration::setLocalCertificate(const QSslCertificate &certificate)

Python specific notes:
The object exposes a writable attribute 'localCertificate'. This is the setter.

setPeerVerifyDepth

Signature: void setPeerVerifyDepth (int depth)

Description: Method void QSslConfiguration::setPeerVerifyDepth(int depth)

Python specific notes:
The object exposes a writable attribute 'peerVerifyDepth'. This is the setter.

setPeerVerifyMode

Signature: void setPeerVerifyMode (const QSslSocket_PeerVerifyMode mode)

Description: Method void QSslConfiguration::setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)

Python specific notes:
The object exposes a writable attribute 'peerVerifyMode'. This is the setter.

setPrivateKey

Signature: void setPrivateKey (const QSslKey key)

Description: Method void QSslConfiguration::setPrivateKey(const QSslKey &key)

Python specific notes:
The object exposes a writable attribute 'privateKey'. This is the setter.

setProtocol

Signature: void setProtocol (const QSsl_SslProtocol protocol)

Description: Method void QSslConfiguration::setProtocol(QSsl::SslProtocol protocol)

Python specific notes:
The object exposes a writable attribute 'protocol'. This is the setter.