Class ClientCertificates

java.lang.Object
org.neo4j.driver.ClientCertificates

@Preview(name="mTLS") public final class ClientCertificates extends Object
Creates new instances of ClientCertificate.
Since:
5.19
  • Method Details

    • of

      public static ClientCertificate of(File certificate, File privateKey)
      Creates a new instance of ClientCertificate with certificate File and private key File.
      Parameters:
      certificate - the certificate file, must not be null
      privateKey - the key file, must not be null
      Returns:
      the client certificate
    • of

      public static ClientCertificate of(File certificate, File privateKey, String password)
      Creates a new instance of ClientCertificate with certificate File, private key File and key password.
      Parameters:
      certificate - the certificate file, must not be null
      privateKey - the key file, must not be null
      password - the key password
      Returns:
      the client certificate