6.4.2.2 Broker PubSubConnection
6.4.2.2.1 ResourceUri

The ResourceUri parameter of DataType String enables the transport implementation to look up a configured key from the corresponding KeyCredentialConfigurationType instance defined in OPC 10000-12 to use for authenticating access to the Broker at the connection level or for queues configured below the connection.

The ResourceUri should uniquely identify a user and broker combination in a Publisher. An example for such a Uri is “mqtts://myuser@mydomain.com:8883”.

If null or empty, no authentication or anonymous authentication shall be assumed as default unless authentication settings are provided on a subordinated WriterGroup or a DataSetWriter to authenticate access to individual queues.

6.4.2.2.2 AuthenticationProfileUri

The parameter AuthenticationProfileUri of DataType String allows the selection of the authentication protocol used by the transport implementation. This maps to the ProfileUri Property in the KeyCredentialConfigurationType instance selected through the ResourceUri and AuthenticationProfileUri Strings.

A set of possible AuthenticationProfileUris are in the Profile http://opcfoundation.org/UA-Profile/Server/KeyCredentialManagement. One example for MQTT user name and password is the URI “http://opcfoundation.org/UA-Profile/Authentication/mqtt-username”.

This parameter is optional. If more than one ProfileUri describing the protocol to use for authentication is configured and this value is null or empty, the transport will choose one. If the transport cannot fine a suitable authentication mechanism in the ProfileUri array, the transport sets the State of the PubSubConnection is set to Error.

6.4.2.2.3 BrokerConnectionTransportDataType structure

This Structure DataType is used to represent the broker-specific transport mapping parameters for the PubSubConnection. It is a subtype of the ConnectionTransportDataType defined in 6.2.7.5.2.

The BrokerConnectionTransportDataType is formally defined in Table 143.

Table 143 – BrokerConnectionTransportDataType structure
Name Type Description
BrokerConnectionTransportDataTypeStructureSubtype of the ConnectionTransportDataType defined in 6.2.6.4.

ResourceUri

StringDefined in 6.4.2.2.1.

AuthenticationProfileUri

StringDefined in 6.4.2.2.2.

Its representation in the AddressSpace is defined in Table 144.

Table 144 – BrokerConnectionTransportDataType definition
Attributes Value
BrowseNameBrokerConnectionTransportDataType
IsAbstractFalse
Subtype of ConnectionTransportDataType defined in 6.2.7.5.2.
Conformance Units
PubSub Parameters Broker