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 |
端點描述包含端點和如何連接到它的有關信息。
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 |
Default constructs an endpoint description with no parameters set.
Constructs an endpoint description from rhs .
Returns the URL for the endpoint.
注意: Getter function for property endpointUrl.
另請參閱 setEndpointUrl ().
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 ().
Returns the security mode supported by this endpoint.
注意: Getter function for property securityMode.
另請參閱 setSecurityMode ().
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 ().
Returns the application description of the server.
注意: Getter function for property server.
另請參閱 setServer ().
Returns the application instance certificate of the server.
另請參閱 setServerCertificate ().
Returns a reference to the application description of the server.
Sets the URL for the endpoint to endpointUrl .
另請參閱 endpointUrl ().
Sets the security level to securityLevel .
另請參閱 securityLevel ().
Sets the security mode supported by this endpoint to securityMode .
另請參閱 securityMode ().
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 ().
Sets the application description of the server to server .
另請參閱 server ().
Sets the application instance certificate of the server to serverCertificate .
另請參閱 serverCertificate ().
Sets the URI of the transport profile supported by the endpoint to transportProfileUri .
另請參閱 transportProfileUri ().
Sets the user identity tokens to userIdentityTokens .
另請參閱 userIdentityTokens ().
Returns the URI of the transport profile supported by the endpoint.
另請參閱 setTransportProfileUri ().
Returns a list of user identity tokens the endpoint will accept.
注意: Getter function for property userIdentityTokens.
另請參閱 setUserIdentityTokens ().
Returns a reference to a list of user identity tokens the endpoint will accept.
設置值從 rhs in this endpoint description.
返迴
true
if this endpoint description has the same value as
rhs
.