Last active
December 19, 2019 10:55
-
-
Save michael-simons/60ba8b1f1dea4f2583b37f048fffbeae 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
import org.neo4j.driver.AuthTokens; | |
import org.neo4j.driver.Config; | |
import org.neo4j.driver.Driver; | |
import org.neo4j.driver.GraphDatabase; | |
import org.neo4j.driver.Session; | |
public class AccessAura { | |
public static void main(String... a) { | |
Config config = Config.builder().withEncryption().build(); | |
try (Driver driver = GraphDatabase | |
.driver("neo4j://XXXX.databases.neo4j.io", AuthTokens.basic("neo4j", "secret"), config)) { | |
try (Session session = driver.session()) { | |
// Do something with you session | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment