pdcomm::opcua::qt_client_configuration
Struct
Connection and identity settings of a qt_client_worker.
struct qt_client_configurationThe worker constructor copies every member into its own allocations. The worker wipes its copy of the private key after connecting and its copy of the user credentials after activation; wipe the caller's copy yourself. The defaults differ from options(): a 5000 ms timeout and #PDCOMM_OPCUA_USER_SECRET_HEADER_POLICY_ONLY.
Members
anonymous
Field
Activate anonymously instead of with user_name and user_secret.
bool anonymous = falseapplication_uri
Field
ApplicationUri, at most 4096 bytes; must match the client certificate.
QByteArray application_uri = "urn:pdcomm:opcua:client"certificate_der
Field
Client application instance certificate (DER, at most 64 KiB).
QByteArray certificate_derendpoint
Field
opc.tcp:// endpoint URL in UTF-8, at most 4096 bytes.
QByteArray endpointflags
Field
Bitwise OR of ::pdcomm_opcua_option_flags values.
uint32_t flags = PDCOMM_OPCUA_USER_SECRET_HEADER_POLICY_ONLYmode
Field
Requested ::pdcomm_opcua_security_mode value.
uint32_t mode = PDCOMM_OPCUA_SIGN_AND_ENCRYPTpolicy
Field
Requested ::pdcomm_opcua_policy value.
uint32_t policy = PDCOMM_OPCUA_AES256SHA256RSAPSSprivate_key_pem
Field
Private key of that certificate (PEM, at most 64 KiB).
QByteArray private_key_pemtimeout_ms
Field
Timeout of each network exchange and each outstanding request, 1 to 300000 ms.
uint32_t timeout_ms = 5000trusted_server_der
Field
Server certificate to trust (DER, at most 64 KiB).
QByteArray trusted_server_deruser_name
Field
UTF-8 user name for a UserNameIdentityToken; used when anonymous is false.
QByteArray user_nameuser_secret
Field
UTF-8 password, at most 16 KiB; used when anonymous is false.
QByteArray user_secret