1818 */
1919package org .neo4j .driver .v1 ;
2020
21- import java .io .IOException ;
22- import java .net .URI ;
23- import java .security .GeneralSecurityException ;
24-
25- import org .neo4j .driver .internal .ClusterDriver ;
2621import org .neo4j .driver .internal .DirectDriver ;
2722import org .neo4j .driver .internal .SessionParameters ;
23+ import org .neo4j .driver .internal .net .BoltServerAddress ;
2824import org .neo4j .driver .internal .net .pooling .PoolSettings ;
2925import org .neo4j .driver .internal .security .SecurityPlan ;
30- import org .neo4j .driver .internal .net .BoltServerAddress ;
3126import org .neo4j .driver .v1 .exceptions .ClientException ;
3227
28+ import java .io .IOException ;
29+ import java .net .URI ;
30+ import java .security .GeneralSecurityException ;
31+
3332import static java .lang .String .format ;
3433import static org .neo4j .driver .v1 .Config .EncryptionLevel .REQUIRED ;
3534import static org .neo4j .driver .v1 .Config .EncryptionLevel .REQUIRED_NON_LOCAL ;
@@ -152,7 +151,7 @@ public static Driver driver( URI uri, AuthToken authToken, Config config )
152151 SecurityPlan securityPlan ;
153152 try
154153 {
155- securityPlan = createSecurityPlan ( address , authToken , config );
154+ securityPlan = createSecurityPlan ( address , config );
156155 }
157156 catch ( GeneralSecurityException | IOException ex )
158157 {
@@ -169,8 +168,6 @@ public static Driver driver( URI uri, AuthToken authToken, Config config )
169168 {
170169 case "bolt" :
171170 return new DirectDriver ( address , sessionParameters , securityPlan , poolSettings , config .logging () );
172- case "bolt+discovery" :
173- return new ClusterDriver ( address , sessionParameters , securityPlan , poolSettings , config .logging () );
174171 default :
175172 throw new ClientException ( format ( "Unsupported URI scheme: %s" , scheme ) );
176173 }
@@ -180,7 +177,7 @@ public static Driver driver( URI uri, AuthToken authToken, Config config )
180177 * Establish a complete SecurityPlan based on the details provided for
181178 * driver construction.
182179 */
183- private static SecurityPlan createSecurityPlan ( BoltServerAddress address , AuthToken authToken , Config config )
180+ private static SecurityPlan createSecurityPlan ( BoltServerAddress address , Config config )
184181 throws GeneralSecurityException , IOException
185182 {
186183 Config .EncryptionLevel encryptionLevel = config .encryptionLevel ();
0 commit comments