API reference - Class QSslConfiguration

Notation used in Ruby API documentation

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

[const] bool !=(const QSslConfiguration other)

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

[const] bool ==(const QSslConfiguration other)

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

void _assign(const QSslConfiguration other)

Description: Assigns another object to self

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.

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.

[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.

[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.

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.

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.

QSslConfiguration assign(const QSslConfiguration other)

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

[const] QSslCertificate[] caCertificates

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

Python specific notes:

The object exposes a readable attribute 'caCertificates'. This is the getter.

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.

[const] QSslCipher[] ciphers

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

Python specific notes:

The object exposes a readable attribute 'ciphers'. This is the getter.

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.

void create

Description: Ensures the C++ object is created

Use of this method is deprecated. Use _create instead

[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.

[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.

void destroy

Description: Explicitly destroys the object

Use of this method is deprecated. Use _destroy instead

[const] bool destroyed?

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

Use of this method is deprecated. Use _destroyed? instead

[const] new QSslConfiguration ptr dup

Description: Creates a copy of self

[const] bool isNull?

Description: Method bool QSslConfiguration::isNull()

[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

[const] QSslCertificate localCertificate

Description: Method QSslCertificate QSslConfiguration::localCertificate()

Python specific notes:

The object exposes a readable attribute 'localCertificate'. This is the getter.

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.

[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

[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

[const] QSslCertificate peerCertificate

Description: Method QSslCertificate QSslConfiguration::peerCertificate()

[const] QSslCertificate[] peerCertificateChain

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

[const] int peerVerifyDepth

Description: Method int QSslConfiguration::peerVerifyDepth()

Python specific notes:

The object exposes a readable attribute 'peerVerifyDepth'. This is the getter.

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.

[const] QSslSocket_PeerVerifyMode peerVerifyMode

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

Python specific notes:

The object exposes a readable attribute 'peerVerifyMode'. This is the getter.

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.

[const] QSslKey privateKey

Description: Method QSslKey QSslConfiguration::privateKey()

Python specific notes:

The object exposes a readable attribute 'privateKey'. This is the getter.

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.

[const] QSsl_SslProtocol protocol

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

Python specific notes:

The object exposes a readable attribute 'protocol'. This is the getter.

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.

[const] QSslCipher sessionCipher

Description: Method QSslCipher QSslConfiguration::sessionCipher()

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.

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.

[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.

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.

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.

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.

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.

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.