.. _object_OpcUaClientConnection: :index:`OpcUaClientConnection` ------------------------------ Description *********** :**› Inherits**: :ref:`OpcUaConnection ` Overview ******** Properties ++++++++++ .. hlist:: :columns: 2 * `authenticationInformation `_ * `availableBackends `_ * `backend `_ * `connected `_ * `connection `_ * `currentEndpoint `_ * `defaultConnection `_ * `namespaces `_ * `supportedSecurityPolicies `_ * `supportedUserTokenTypes `_ Methods +++++++ .. hlist:: :columns: 2 * :ref:`connectToEndpoint() ` * :ref:`setAnonymousAuthentication() ` * :ref:`setCertificateAuthentication() ` * :ref:`setUsernameAuthentication() ` * :ref:`setupEncryption() ` * `connectToEndpoint `_ * `disconnectFromEndpoint `_ * `readNodeAttributes `_ * `setAuthenticationInformation `_ * `setConnection `_ * `setDefaultConnection `_ * `writeNodeAttributes `_ Signals +++++++ .. hlist:: :columns: 1 * `readNodeAttributesFinished `_ * `writeNodeAttributesFinished `_ Enumerations ++++++++++++ .. hlist:: :columns: 1 * :ref:`MessageSecurityMode ` Properties ********** Methods ******* .. _method_OpcUaClientConnection_connectToEndpoint: .. index:: single: connectToEndpoint connectToEndpoint(String endpointUrl, :ref:`MessageSecurityMode ` securityMode, String securityPolicy) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. _method_OpcUaClientConnection_setAnonymousAuthentication: .. index:: single: setAnonymousAuthentication setAnonymousAuthentication() ++++++++++++++++++++++++++++ This method sets the authentication type to anonymous authentication. This is the default authentication type and usually does not have to be set explicitly. This method was introduced in InCore 2.7. .. _method_OpcUaClientConnection_setCertificateAuthentication: .. index:: single: setCertificateAuthentication setCertificateAuthentication(ArrayBuffer clientCertData, ArrayBuffer clientPrivateKeyData) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. _method_OpcUaClientConnection_setUsernameAuthentication: .. index:: single: setUsernameAuthentication setUsernameAuthentication(String username, String password) +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This method sets the authentication type to user authentication and authenticates with given username and password. This method was introduced in InCore 2.7. .. _method_OpcUaClientConnection_setupEncryption: .. index:: single: setupEncryption setupEncryption(ArrayBuffer clientCertificateData, String privateKeyData, ArrayBuffer trustedCertificateData, Boolean verifyServerCertificate) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This method sets up connection encryption using the supplied X509 client certificate as well as the private key (the latter one in PEM format). The CA or server certificate has to be passed as trusted certificate, otherwise the client will not accept any server certificate. This method was introduced in InCore 2.7. :**› Returns**: Boolean Enumerations ************ .. _enum_OpcUaClientConnection_MessageSecurityMode: .. index:: single: MessageSecurityMode MessageSecurityMode +++++++++++++++++++ .. index:: single: OpcUaClientConnection.Invalid .. index:: single: OpcUaClientConnection.None .. index:: single: OpcUaClientConnection.Sign .. index:: single: OpcUaClientConnection.SignAndEncrypt .. list-table:: :widths: auto :header-rows: 1 * - Name - Value - Description .. _enumitem_OpcUaClientConnection_Invalid: * - ``OpcUaClientConnection.Invalid`` - ``0`` - .. _enumitem_OpcUaClientConnection_None: * - ``OpcUaClientConnection.None`` - ``1`` - .. _enumitem_OpcUaClientConnection_Sign: * - ``OpcUaClientConnection.Sign`` - ``2`` - .. _enumitem_OpcUaClientConnection_SignAndEncrypt: * - ``OpcUaClientConnection.SignAndEncrypt`` - ``3`` - Example ******* See :ref:`OpcUaClient example ` on how to use OpcUaClientConnection.