18
18
*/
19
19
package org .neo4j .driver .v1 ;
20
20
21
- import java .io .IOException ;
22
- import java .net .URI ;
23
- import java .security .GeneralSecurityException ;
24
-
25
- import org .neo4j .driver .internal .ClusterDriver ;
26
21
import org .neo4j .driver .internal .DirectDriver ;
27
22
import org .neo4j .driver .internal .SessionParameters ;
23
+ import org .neo4j .driver .internal .net .BoltServerAddress ;
28
24
import org .neo4j .driver .internal .net .pooling .PoolSettings ;
29
25
import org .neo4j .driver .internal .security .SecurityPlan ;
30
- import org .neo4j .driver .internal .net .BoltServerAddress ;
31
26
import org .neo4j .driver .v1 .exceptions .ClientException ;
32
27
28
+ import java .io .IOException ;
29
+ import java .net .URI ;
30
+ import java .security .GeneralSecurityException ;
31
+
33
32
import static java .lang .String .format ;
34
33
import static org .neo4j .driver .v1 .Config .EncryptionLevel .REQUIRED ;
35
34
import static org .neo4j .driver .v1 .Config .EncryptionLevel .REQUIRED_NON_LOCAL ;
@@ -152,7 +151,7 @@ public static Driver driver( URI uri, AuthToken authToken, Config config )
152
151
SecurityPlan securityPlan ;
153
152
try
154
153
{
155
- securityPlan = createSecurityPlan ( address , authToken , config );
154
+ securityPlan = createSecurityPlan ( address , config );
156
155
}
157
156
catch ( GeneralSecurityException | IOException ex )
158
157
{
@@ -169,8 +168,6 @@ public static Driver driver( URI uri, AuthToken authToken, Config config )
169
168
{
170
169
case "bolt" :
171
170
return new DirectDriver ( address , sessionParameters , securityPlan , poolSettings , config .logging () );
172
- case "bolt+discovery" :
173
- return new ClusterDriver ( address , sessionParameters , securityPlan , poolSettings , config .logging () );
174
171
default :
175
172
throw new ClientException ( format ( "Unsupported URI scheme: %s" , scheme ) );
176
173
}
@@ -180,7 +177,7 @@ public static Driver driver( URI uri, AuthToken authToken, Config config )
180
177
* Establish a complete SecurityPlan based on the details provided for
181
178
* driver construction.
182
179
*/
183
- private static SecurityPlan createSecurityPlan ( BoltServerAddress address , AuthToken authToken , Config config )
180
+ private static SecurityPlan createSecurityPlan ( BoltServerAddress address , Config config )
184
181
throws GeneralSecurityException , IOException
185
182
{
186
183
Config .EncryptionLevel encryptionLevel = config .encryptionLevel ();
0 commit comments