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. |
1 |
No security. |
|
2 |
Messages are signed but not encrypted. |
|
QOpcUaEndpointDescription::SignAndEncrypt |
3 |
Messages are signed and encrypted. |
Property Documentation▲
[read-only] endpointUrl : const QString▲
[read-only] securityMode : const QOpcUaEndpointDescription::MessageSecurityMode▲
[read-only] securityPolicy : const QString▲
[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:
-
int userIdentityTokens() const
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▲
See also setServerCertificate()
QOpcUaApplicationDescription &QOpcUaEndpointDescription::serverRef()▲
Returns a reference to the application description of the server.
void QOpcUaEndpointDescription::setEndpointUrl(const QString &endpointUrl)▲
void QOpcUaEndpointDescription::setSecurityLevel(quint8 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)▲
void QOpcUaEndpointDescription::setServer(const QOpcUaApplicationDescription &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)▲
QString QOpcUaEndpointDescription::transportProfileUri() const▲
Returns the URI of the transport profile supported by the endpoint.
See Also▲
See also setTransportProfileUri()
int QOpcUaEndpointDescription::userIdentityTokens() const▲
Returns a list of user identity tokens the endpoint will accept.
Getter function for property userIdentityTokens.
See Also▲
See also setUserIdentityTokens()
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.