java.lang.Object
org.neo4j.driver.internal.security.SecurityPlanImpl
- All Implemented Interfaces:
SecurityPlan
A SecurityPlan consists of encryption and trust details.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.neo4j.driver.internal.security.SecurityPlan
SecurityPlan.SSLContextSupplier
-
Method Summary
Modifier and TypeMethodDescriptionstatic SecurityPlan
forAllCertificates
(boolean requiresHostnameVerification, RevocationCheckingStrategy revocationCheckingStrategy, ClientCertificateManager clientCertificateManager, Logging logging) static SecurityPlan
forCustomCASignedCertificates
(List<File> certFiles, boolean requiresHostnameVerification, RevocationCheckingStrategy revocationCheckingStrategy, ClientCertificateManager clientCertificateManager, Logging logging) static SecurityPlan
forSystemCASignedCertificates
(boolean requiresHostnameVerification, RevocationCheckingStrategy revocationCheckingStrategy, ClientCertificateManager clientCertificateManager, Logging logging) static SecurityPlan
insecure()
boolean
boolean
boolean
-
Method Details
-
forAllCertificates
public static SecurityPlan forAllCertificates(boolean requiresHostnameVerification, RevocationCheckingStrategy revocationCheckingStrategy, ClientCertificateManager clientCertificateManager, Logging logging) throws NoSuchAlgorithmException, KeyManagementException -
forCustomCASignedCertificates
public static SecurityPlan forCustomCASignedCertificates(List<File> certFiles, boolean requiresHostnameVerification, RevocationCheckingStrategy revocationCheckingStrategy, ClientCertificateManager clientCertificateManager, Logging logging) throws GeneralSecurityException, IOException - Throws:
GeneralSecurityException
IOException
-
forSystemCASignedCertificates
public static SecurityPlan forSystemCASignedCertificates(boolean requiresHostnameVerification, RevocationCheckingStrategy revocationCheckingStrategy, ClientCertificateManager clientCertificateManager, Logging logging) throws GeneralSecurityException, IOException - Throws:
GeneralSecurityException
IOException
-
insecure
-
requiresEncryption
public boolean requiresEncryption()- Specified by:
requiresEncryption
in interfaceSecurityPlan
-
requiresClientAuth
public boolean requiresClientAuth()- Specified by:
requiresClientAuth
in interfaceSecurityPlan
-
sslContext
- Specified by:
sslContext
in interfaceSecurityPlan
-
requiresHostnameVerification
public boolean requiresHostnameVerification()- Specified by:
requiresHostnameVerification
in interfaceSecurityPlan
-
revocationCheckingStrategy
- Specified by:
revocationCheckingStrategy
in interfaceSecurityPlan
-