PySide6.QtOpcUa.QOpcUaEndpointDescription¶
- class QOpcUaEndpointDescription¶
The OPC UA EndpointDescription . More…
Synopsis¶
Properties¶
Methods¶
def
__init__()
def
endpointUrl()
def
__eq__()
def
securityLevel()
def
securityMode()
def
securityPolicy()
def
server()
def
serverRef()
def
setEndpointUrl()
def
setServer()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
An endpoint description contains information about an endpoint and how to connect to it.
- class MessageSecurityMode¶
This enum type holds the security mode supported by the endpoint.
Constant
Description
QOpcUaEndpointDescription.Invalid
The default value, will be rejected by the server.
QOpcUaEndpointDescription.None
No security.
QOpcUaEndpointDescription.Sign
Messages are signed but not encrypted.
QOpcUaEndpointDescription.SignAndEncrypt
Messages are signed and encrypted.
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property endpointUrlᅟ: str¶
The URL for the endpoint.
- Access functions:
- property securityModeᅟ: QOpcUaEndpointDescription.MessageSecurityMode¶
Security mode supported by this endpoint.
- Access functions:
- property securityPolicyᅟ: str¶
The URI of the security policy.
- Access functions:
- property serverᅟ: QOpcUaApplicationDescription¶
The application description of the server.
- Access functions:
- property userIdentityTokensᅟ: list of QOpcUaUserTokenPolicy¶
List of user identity tokens the endpoint will accept.
- Access functions:
- __init__()¶
Default constructs an endpoint description with no parameters set.
- __init__(arg__1)
- Parameters:
arg__1 –
QOpcUaEndpointDescription
Constructs an endpoint description from
rhs
.- endpointUrl()¶
- Return type:
str
Returns the URL for the endpoint.
See also
Getter of property
endpointUrlᅟ
.- __eq__(arg__1)¶
- Parameters:
arg__1 –
QOpcUaEndpointDescription
- Return type:
bool
Returns
true
if this endpoint description has the same value asrhs
.- securityLevel()¶
- Return type:
int
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
- securityMode()¶
- Return type:
Returns the security mode supported by this endpoint.
See also
Getter of property
securityModeᅟ
.- securityPolicy()¶
- Return type:
str
Returns the URI of the security policy.
See also
Getter of property
securityPolicyᅟ
.- server()¶
- Return type:
Returns the application description of the server.
See also
Getter of property
serverᅟ
.- serverCertificate()¶
- Return type:
Returns the application instance certificate of the server.
See also
- serverRef()¶
- Return type:
Returns a reference to the application description of the server.
- setEndpointUrl(endpointUrl)¶
- Parameters:
endpointUrl – str
Sets the URL for the endpoint to
endpointUrl
.See also
- setSecurityLevel(securityLevel)¶
- Parameters:
securityLevel – int
Sets the security level to
securityLevel
.See also
- setSecurityMode(securityMode)¶
- Parameters:
securityMode –
MessageSecurityMode
Sets the security mode supported by this endpoint to
securityMode
.See also
- setSecurityPolicy(securityPolicy)¶
- Parameters:
securityPolicy – str
Sets the URI of the security policy to
securityPolicy
.See also
- setServer(server)¶
- Parameters:
server –
QOpcUaApplicationDescription
Sets the application description of the server to
server
.See also
- setServerCertificate(serverCertificate)¶
- Parameters:
serverCertificate –
QByteArray
Sets the application instance certificate of the server to
serverCertificate
.See also
- setTransportProfileUri(transportProfileUri)¶
- Parameters:
transportProfileUri – str
Sets the URI of the transport profile supported by the endpoint to
transportProfileUri
.See also
- setUserIdentityTokens(userIdentityTokens)¶
- Parameters:
userIdentityTokens – .list of QOpcUaUserTokenPolicy
Sets the user identity tokens to
userIdentityTokens
.See also
- transportProfileUri()¶
- Return type:
str
Returns the URI of the transport profile supported by the endpoint.
See also
- userIdentityTokens()¶
- Return type:
.list of QOpcUaUserTokenPolicy
Returns a list of user identity tokens the endpoint will accept.
See also
Getter of property
userIdentityTokensᅟ
.- userIdentityTokensRef()¶
- Return type:
.list of QOpcUaUserTokenPolicy
Returns a reference to a list of user identity tokens the endpoint will accept.