Class Session.SecurityOptions

java.lang.Object
net.quasardb.qdb.Session.SecurityOptions
All Implemented Interfaces:
Serializable
Enclosing class:
Session

public static class Session.SecurityOptions extends Object implements Serializable
Optional configuration for establishing a secure connection.
See Also:
  • Field Details

    • userName

      protected String userName
    • userPrivateKey

      protected String userPrivateKey
    • clusterPublicKey

      protected String clusterPublicKey
  • Constructor Details

    • SecurityOptions

      public SecurityOptions(String userName, String userPrivateKey, String clusterPublicKey)
      Parameters:
      userName - Username to use when authenticating to the cluster.
      userPrivateKey - Private key of the user.
      clusterPublicKey - Public key of the cluster.
  • Method Details

    • ofFiles

      public static Session.SecurityOptions ofFiles(String userSecurityFile, String clusterPublicKeyFile) throws IOException
      Create security credentials using QuasarDB's credential files as input.
      Parameters:
      userSecurityFile - Path to the user's security file, e.g. /home/myuser/myuser_private.key
      userSecurityFile - Path to the cluster's public key file, e.g. /usr/share/qdb/cluster_public.key
      Throws:
      IOException