public static class Session.SecurityOptions extends Object implements Serializable
| Modifier and Type | Field and Description | 
|---|---|
protected String | 
clusterPublicKey  | 
protected String | 
userName  | 
protected String | 
userPrivateKey  | 
| Constructor and Description | 
|---|
SecurityOptions(String userName,
               String userPrivateKey,
               String clusterPublicKey)  | 
| Modifier and Type | Method and Description | 
|---|---|
static Session.SecurityOptions | 
ofFiles(String userSecurityFile,
       String clusterPublicKeyFile)
Create security credentials using QuasarDB's credential files as input. 
 | 
protected String userName
protected String userPrivateKey
protected String clusterPublicKey
public static Session.SecurityOptions ofFiles(String userSecurityFile, String clusterPublicKeyFile) throws IOException
userSecurityFile - Path to the user's security file, e.g. /home/myuser/myuser_private.keyuserSecurityFile - Path to the cluster's public key file, e.g. /usr/share/qdb/cluster_public.keyIOExceptionCopyright © 2021. All rights reserved.