Skip to content

Commit d1eedaf

Browse files
committed
Reordered handling of trust cases to enable correct fall-through
1 parent 48946fe commit d1eedaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver/src/main/java/org/neo4j/driver/v1/GraphDatabase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,12 @@ private static SecurityPlan createSecurityPlan( BoltServerAddress address, Confi
235235
// intentional fallthrough
236236
// END OF DEPRECATED CASES //
237237

238-
case TRUST_ALL_CERTIFICATES:
239-
return SecurityPlan.forAllCertificates();
240238
case TRUST_CUSTOM_CA_SIGNED_CERTIFICATES:
241239
return SecurityPlan.forCustomCASignedCertificates( config.trustStrategy().certFile() );
242240
case TRUST_SYSTEM_CA_SIGNED_CERTIFICATES:
243241
return SecurityPlan.forSystemCASignedCertificates();
242+
case TRUST_ALL_CERTIFICATES:
243+
return SecurityPlan.forAllCertificates();
244244
default:
245245
throw new ClientException(
246246
"Unknown TLS authentication strategy: " + config.trustStrategy().strategy().name() );

0 commit comments

Comments
 (0)