Created
February 23, 2021 13:59
-
-
Save dalexandrov/11bc7520879be7544d88fb78ca6901fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Driver initDriver() { | |
AuthToken authToken = AuthTokens.none(); | |
if (authenticationEnabled) { | |
authToken = AuthTokens.basic(username, password); | |
} | |
org.neo4j.driver.Config.ConfigBuilder configBuilder = createBaseConfig(); | |
configureSsl(configBuilder); | |
configurePoolSettings(configBuilder); | |
return GraphDatabase.driver(uri, authToken, configBuilder.build()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment