public abstract static class Neo4jIO.DriverConfiguration
extends java.lang.Object
implements java.io.Serializable
Session
.Constructor and Description |
---|
DriverConfiguration() |
Modifier and Type | Method and Description |
---|---|
static Neo4jIO.DriverConfiguration |
create() |
static Neo4jIO.DriverConfiguration |
create(java.lang.String url,
java.lang.String username,
java.lang.String password) |
protected org.neo4j.driver.AuthToken |
getAuthToken(java.lang.String username,
java.lang.String password)
Certain embedded scenarios and so on actually allow for having no authentication at all.
|
Neo4jIO.DriverConfiguration |
withConfig(org.neo4j.driver.Config config) |
Neo4jIO.DriverConfiguration |
withDefaultConfig(boolean useDefault) |
Neo4jIO.DriverConfiguration |
withDefaultConfig(ValueProvider<java.lang.Boolean> useDefault) |
Neo4jIO.DriverConfiguration |
withPassword(java.lang.String password) |
Neo4jIO.DriverConfiguration |
withPassword(ValueProvider<java.lang.String> password) |
Neo4jIO.DriverConfiguration |
withUrl(java.lang.String url) |
Neo4jIO.DriverConfiguration |
withUrl(ValueProvider<java.lang.String> url) |
Neo4jIO.DriverConfiguration |
withUrls(java.util.List<java.lang.String> urls) |
Neo4jIO.DriverConfiguration |
withUrls(ValueProvider<java.util.List<java.lang.String>> urls) |
Neo4jIO.DriverConfiguration |
withUsername(java.lang.String username) |
Neo4jIO.DriverConfiguration |
withUsername(ValueProvider<java.lang.String> username) |
public static Neo4jIO.DriverConfiguration create()
public static Neo4jIO.DriverConfiguration create(java.lang.String url, java.lang.String username, java.lang.String password)
public Neo4jIO.DriverConfiguration withUrl(java.lang.String url)
public Neo4jIO.DriverConfiguration withUrl(ValueProvider<java.lang.String> url)
public Neo4jIO.DriverConfiguration withUrls(java.util.List<java.lang.String> urls)
public Neo4jIO.DriverConfiguration withUrls(ValueProvider<java.util.List<java.lang.String>> urls)
public Neo4jIO.DriverConfiguration withConfig(org.neo4j.driver.Config config)
public Neo4jIO.DriverConfiguration withUsername(java.lang.String username)
public Neo4jIO.DriverConfiguration withUsername(ValueProvider<java.lang.String> username)
public Neo4jIO.DriverConfiguration withPassword(java.lang.String password)
public Neo4jIO.DriverConfiguration withPassword(ValueProvider<java.lang.String> password)
public Neo4jIO.DriverConfiguration withDefaultConfig(boolean useDefault)
public Neo4jIO.DriverConfiguration withDefaultConfig(ValueProvider<java.lang.Boolean> useDefault)
protected org.neo4j.driver.AuthToken getAuthToken(java.lang.String username, java.lang.String password)
username
- The username if one is neededpassword
- The password if one is needed