QOpcUaEndpointDescription Class

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

The Basic128Rsa15 and Basic256 security policies are deprecated and should only be used for backward compatibility if the server doesn't support any of the policies currently considered as secure.

注意: 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 .

The Basic128Rsa15 and Basic256 security policies are deprecated and should only be used for backward compatibility if the server doesn't support any of the policies currently considered as secure.

另請參閱 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 .