This string includes the properties used to connect with NTLM authentication.

jdbc:datadirect:dynamics365:ServiceURL=serviceurl;AuthenticationMethod=method;
NTLMDomain=domain;User=username;Password=password;
[property=value[;...]];

where:

serviceurl
specifies the base URL of the Dynamics 365 instance to which you want to issue requests. For example, http://myonpreminstance.sso3.dynamics365.net/api/data/v9.1/.
method
specifies the authentication method used to connect to the service. AuthenticationMethod should be set to NTLM for NTLM authentication.
domain
specifies the NTLM domain used for NTLM authentication.
username
specifies the user name that is used to connect to the service.
password
specifies the password for the user connecting to the service.
property=value
specifies connection property settings. Multiple properties are separated by a semi-colon.
Note: The User and Password properties are not required to be stored in the connection string. They can also be sent separately by the application.

The following example connection string includes the properties required for connecting with NTLM authentication.

Connection conn = DriverManager.getConnection
  ("jdbc:datadirect:dynamics365
    ServiceURL=http://myonpreminstance.sso3.dynamics365.net/api/data/v9.1;
    AuthenticationMethod=NTLM;NTLMDomain=sso3;User=jsmith;Password=secret;");