Creating a Connection Config with a Bridge

To allow traffic to be bridged from one domain to another, two elements need to be added to the DOFConnection.config. We need to specify that the connection can send security-related traffic for another domain; to do this, we add the domain broadcast as a trusted domain. This will allow the connection to forward security-related traffic for any domain. We also need to add the DOFOperation.Bridge.Config to the connection config.

Here we create a connection config with a bridge.

How It Works

A DOFConnection can route security traffic for other domains. This can be done with two mechanisms. Adding a trusted domain only requires a DOFObjectID.Domain and will send any security-related traffic in the domain specified over the connection.

You can also create DOFDomain.Config objects and use the addDomain call in the DOFConnection.Config.Builder to add the domain. A DOFDomain requires a DOFCredential to be created. When added to a DOFConnection before the connection can successfully connect, the DOFDomain's credentials must also be verified. If the credentials cannot be verified, the connection will fail to connect. In addition, a DOFConnection with a DOFDomain added will disconnect if the domain ever becomes unavailable.