IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QOpcUaEndpointDescription Class

The OPC UA EndpointDescription.

This class was introduced in Qt 5.11.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QOpcUaEndpointDescription Class▲

  • Header: QOpcUaEndpointDescription

  • Since: Qt 5.11

  • qmake: QT += opcua

Detailed Description▲

An endpoint description contains information about an endpoint and how to connect to it.

Member Type Documentation▲

 

enum QOpcUaEndpointDescription::MessageSecurityMode▲

This enum type holds the security mode supported by the endpoint.

Constant

Value

Description

QOpcUaEndpointDescription::Invalid

0

The default value, will be rejected by the server.

QOpcUaEndpointDescription::None

1

No security.

QOpcUaEndpointDescription::Sign

2

Messages are signed but not encrypted.

QOpcUaEndpointDescription::SignAndEncrypt

3

Messages are signed and encrypted.

Property Documentation▲

 

[read-only] endpointUrl : const QString▲

The URL for the endpoint.

Access functions:

[read-only] securityMode : const QOpcUaEndpointDescription::MessageSecurityMode▲

Security mode supported by this endpoint.

Access functions:

[read-only] securityPolicy : const QString▲

The URI of the security policy.

Access functions:

[read-only] server : const QOpcUaApplicationDescription▲

The application description of the server.

Access functions:

  • QOpcUaApplicationDescription server() const

[read-only] userIdentityTokens : const QList<QOpcUaUserTokenPolicy>▲

List of user identity tokens the endpoint will accept.

Access functions:

Member Function Documentation▲

 

QOpcUaEndpointDescription::QOpcUaEndpointDescription(const QOpcUaEndpointDescription &rhs)▲

Constructs an endpoint description from rhs.

QString QOpcUaEndpointDescription::endpointUrl() const▲

Returns the URL for the endpoint.

Getter function for property endpointUrl.

See Also▲

See also setEndpointUrl()

quint8 QOpcUaEndpointDescription::securityLevel() const▲

Returns a relative index assigned by the server. It describes how secure this endpoint is compared to other endpoints of the same server. An endpoint with strong security measures has a higher security level than one with weaker or no security measures.

Security level 0 indicates an endpoint for backward compatibility purposes which should only be used if the client does not support the security measures required by more secure endpoints.

See Also▲

See also setSecurityLevel()

QOpcUaEndpointDescription::MessageSecurityMode QOpcUaEndpointDescription::securityMode() const▲

Returns the security mode supported by this endpoint.

Getter function for property securityMode.

See Also▲

See also setSecurityMode()

QString QOpcUaEndpointDescription::securityPolicy() const▲

Returns the URI of the security policy.

Getter function for property securityPolicy.

See Also▲

See also setSecurityPolicy()

QOpcUaApplicationDescription QOpcUaEndpointDescription::server() const▲

Returns the application description of the server.

Getter function for property server.

See Also▲

See also setServer()

QByteArray QOpcUaEndpointDescription::serverCertificate() const▲

Returns the application instance certificate of the server.

See Also▲

QOpcUaApplicationDescription &QOpcUaEndpointDescription::serverRef()▲

Returns a reference to the application description of the server.

void QOpcUaEndpointDescription::setEndpointUrl(const QString &endpointUrl)▲

Sets the URL for the endpoint to endpointUrl.

See Also▲

See also endpointUrl()

void QOpcUaEndpointDescription::setSecurityLevel(quint8 securityLevel)▲

Sets the security level to securityLevel.

See Also▲

See also securityLevel()

void QOpcUaEndpointDescription::setSecurityMode(QOpcUaEndpointDescription::MessageSecurityMode securityMode)▲

Sets the security mode supported by this endpoint to securityMode.

See Also▲

See also securityMode()

void QOpcUaEndpointDescription::setSecurityPolicy(const QString &securityPolicy)▲

Sets the URI of the security policy to securityPolicy.

See Also▲

See also securityPolicy()

void QOpcUaEndpointDescription::setServer(const QOpcUaApplicationDescription &server)▲

Sets the application description of the server to server.

See Also▲

See also server()

void QOpcUaEndpointDescription::setServerCertificate(const QByteArray &serverCertificate)▲

Sets the application instance certificate of the server to serverCertificate.

See Also▲

See also serverCertificate()

void QOpcUaEndpointDescription::setTransportProfileUri(const QString &transportProfileUri)▲

Sets the URI of the transport profile supported by the endpoint to transportProfileUri.

See Also▲

See also transportProfileUri()

void QOpcUaEndpointDescription::setUserIdentityTokens(const int &userIdentityTokens)▲

Sets the user identity tokens to userIdentityTokens.

See Also▲

See also userIdentityTokens()

QString QOpcUaEndpointDescription::transportProfileUri() const▲

Returns the URI of the transport profile supported by the endpoint.

See Also▲

int QOpcUaEndpointDescription::userIdentityTokens() const▲

Returns a list of user identity tokens the endpoint will accept.

Getter function for property userIdentityTokens.

See Also▲

int &QOpcUaEndpointDescription::userIdentityTokensRef()▲

Returns a reference to a list of user identity tokens the endpoint will accept.

QOpcUaEndpointDescription &QOpcUaEndpointDescription::operator=(const QOpcUaEndpointDescription &rhs)▲

Sets the values from rhs in this endpoint description.

bool QOpcUaEndpointDescription::operator==(const QOpcUaEndpointDescription &rhs) const▲

Returns true if this endpoint description has the same value as rhs.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+