Modifier and Type | Class and Description |
---|---|
static class |
Config.TrustStrategy.Strategy
The trust strategy that the driver supports
|
Modifier and Type | Method and Description |
---|---|
File |
certFile()
Return the configured certificate file.
|
boolean |
isHostnameVerificationEnabled()
Check if hostname verification is enabled for this trust strategy.
|
Config.TrustStrategy.Strategy |
strategy()
Return the strategy type desired.
|
static Config.TrustStrategy |
trustAllCertificates()
Trust strategy for certificates that trust all certificates blindly.
|
static Config.TrustStrategy |
trustCustomCertificateSignedBy(File certFile)
Only encrypted connections to Neo4j instances with certificates signed by a trusted certificate will be accepted.
|
static Config.TrustStrategy |
trustSystemCertificates()
Trust strategy for certificates that can be verified through the local system store.
|
Config.TrustStrategy |
withHostnameVerification()
Enable hostname verification for this trust strategy.
|
Config.TrustStrategy |
withoutHostnameVerification()
Disable hostname verification for this trust strategy.
|
public Config.TrustStrategy.Strategy strategy()
public File certFile()
null
if trust strategy does not require a certificate.public boolean isHostnameVerificationEnabled()
true
if hostname verification has been enabled via withHostnameVerification()
, false
otherwise.public Config.TrustStrategy withHostnameVerification()
public Config.TrustStrategy withoutHostnameVerification()
public static Config.TrustStrategy trustCustomCertificateSignedBy(File certFile)
The certificate(s) in the file must be encoded using PEM encoding, meaning the certificates in the file should be encoded using Base64, and each certificate is bounded at the beginning by "-----BEGIN CERTIFICATE-----", and bounded at the end by "-----END CERTIFICATE-----".
certFile
- the trusted certificate filepublic static Config.TrustStrategy trustSystemCertificates()
public static Config.TrustStrategy trustAllCertificates()
Copyright © 2019. All rights reserved.