This string includes the properties used to connect with bearer token authentication.

jdbc:datadirect:teamcity:ServerName=server_name;AuthenticationMethod=BearerToken;
SecurityToken=security_token;property=value[;...]];

where:

server_name
specifies the URL of the TeamCity service to which you want to issue requests. For example, https://teamcity.company.com for enterprise accounts.
security_token
specifies the security token that is used to connect to your TeamCity service.
property=value
specifies connection property settings. Multiple properties are separated by a semi-colon.

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

Connection conn = DriverManager.getConnection
  ("jdbc:datadirect:teamcity:ServerName=https://teamcity.company.com;
    AuthenticationMethod=BearerToken;SecurityToken=secret;");