QOpcUaEndpointDescription Class

OPC UA EndpointDescription . 更多...

头: #include <QOpcUaEndpointDescription>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

公共类型

enum MessageSecurityMode { Invalid, None, Sign, SignAndEncrypt }

特性

公共函数

QOpcUaEndpointDescription ()
QOpcUaEndpointDescription (const QOpcUaEndpointDescription & rhs )
QString endpointUrl () const
quint8 securityLevel () const
QOpcUaEndpointDescription::MessageSecurityMode securityMode () const
QString securityPolicy () const
QOpcUaApplicationDescription server () const
QByteArray serverCertificate () const
QOpcUaApplicationDescription & serverRef ()
void setEndpointUrl (const QString & endpointUrl )
void setSecurityLevel (quint8 securityLevel )
void setSecurityMode (QOpcUaEndpointDescription::MessageSecurityMode securityMode )
void setSecurityPolicy (const QString & securityPolicy )
void setServer (const QOpcUaApplicationDescription & server )
void setServerCertificate (const QByteArray & serverCertificate )
void setTransportProfileUri (const QString & transportProfileUri )
void setUserIdentityTokens (const QList<QOpcUaUserTokenPolicy> & userIdentityTokens )
QString transportProfileUri () const
QList<QOpcUaUserTokenPolicy> userIdentityTokens () const
QList<QOpcUaUserTokenPolicy> & userIdentityTokensRef ()
QOpcUaEndpointDescription & operator= (const QOpcUaEndpointDescription & rhs )
bool operator== (const QOpcUaEndpointDescription & rhs ) const

详细描述

端点描述包含端点和如何连接到它的有关信息。

成员类型文档编制

enum QOpcUaEndpointDescription:: MessageSecurityMode

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

常量 描述
QOpcUaEndpointDescription::Invalid 0 The default value, will be rejected by the server.
QOpcUaEndpointDescription::None 1 不安全。
QOpcUaEndpointDescription::Sign 2 Messages are signed but not encrypted.
QOpcUaEndpointDescription::SignAndEncrypt 3 Messages are signed and encrypted.

特性文档编制

[read-only] endpointUrl : const QString

The URL for the endpoint.

访问函数:

QString endpointUrl () const

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

Security mode supported by this endpoint.

访问函数:

QOpcUaEndpointDescription::MessageSecurityMode securityMode () const

[read-only] securityPolicy : const QString

The URI of the security policy.

访问函数:

QString securityPolicy () const

[read-only] server : const QOpcUaApplicationDescription

The application description of the server.

访问函数:

QOpcUaApplicationDescription server () const

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

List of user identity tokens the endpoint will accept.

访问函数:

QList<QOpcUaUserTokenPolicy> userIdentityTokens () const

成员函数文档编制

QOpcUaEndpointDescription:: QOpcUaEndpointDescription ()

Default constructs an endpoint description with no parameters set.

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.

另请参阅 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.

另请参阅 setSecurityLevel ().

QOpcUaEndpointDescription::MessageSecurityMode QOpcUaEndpointDescription:: securityMode () const

Returns the security mode supported by this endpoint.

注意: Getter function for property securityMode.

另请参阅 setSecurityMode ().

QString QOpcUaEndpointDescription:: securityPolicy () const

Returns the URI of the security policy.

注意: Getter function for property securityPolicy.

另请参阅 setSecurityPolicy ().

QOpcUaApplicationDescription QOpcUaEndpointDescription:: server () const

Returns the application description of the server.

注意: Getter function for property server.

另请参阅 setServer ().

QByteArray QOpcUaEndpointDescription:: serverCertificate () const

Returns the application instance certificate of the server.

另请参阅 setServerCertificate ().

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 .

另请参阅 endpointUrl ().

void QOpcUaEndpointDescription:: setSecurityLevel ( quint8 securityLevel )

Sets the security level to securityLevel .

另请参阅 securityLevel ().

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

Sets the security mode supported by this endpoint to securityMode .

另请参阅 securityMode ().

void QOpcUaEndpointDescription:: setSecurityPolicy (const QString & securityPolicy )

Sets the URI of the security policy to securityPolicy .

另请参阅 securityPolicy ().

void QOpcUaEndpointDescription:: setServer (const QOpcUaApplicationDescription & server )

Sets the application description of the server to server .

另请参阅 server ().

void QOpcUaEndpointDescription:: setServerCertificate (const QByteArray & serverCertificate )

Sets the application instance certificate of the server to serverCertificate .

另请参阅 serverCertificate ().

void QOpcUaEndpointDescription:: setTransportProfileUri (const QString & transportProfileUri )

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

另请参阅 transportProfileUri ().

void QOpcUaEndpointDescription:: setUserIdentityTokens (const QList < QOpcUaUserTokenPolicy > & userIdentityTokens )

Sets the user identity tokens to userIdentityTokens .

另请参阅 userIdentityTokens ().

QString QOpcUaEndpointDescription:: transportProfileUri () const

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

另请参阅 setTransportProfileUri ().

QList < QOpcUaUserTokenPolicy > QOpcUaEndpointDescription:: userIdentityTokens () const

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

注意: Getter function for property userIdentityTokens.

另请参阅 setUserIdentityTokens ().

QList < QOpcUaUserTokenPolicy > &QOpcUaEndpointDescription:: userIdentityTokensRef ()

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

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

设置值从 rhs in this endpoint description.

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

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