OpcUaClientConnection

Description

› Inherits:

OpcUaConnection

Overview

Properties

Methods

Signals

Enumerations

Properties

Methods

connectToEndpoint(String endpointUrl, MessageSecurityMode securityMode, String securityPolicy)

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.

setCertificateAuthentication(ArrayBuffer clientCertData, ArrayBuffer clientPrivateKeyData)

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.

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

MessageSecurityMode

Name

Value

Description

OpcUaClientConnection.Invalid

0

OpcUaClientConnection.None

1

OpcUaClientConnection.Sign

2

OpcUaClientConnection.SignAndEncrypt

3

Example

See OpcUaClient example on how to use OpcUaClientConnection.