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 every becomes unavailable.