19 package org.sleuthkit.datamodel;
32 private String hostNameOrIP;
33 private String portNumber;
34 private String userName;
35 private String password;
37 private boolean sslEnabled =
false;
38 private boolean sslVerify =
false;
39 private String customSslValidationClassName;
56 this.hostNameOrIP = hostNameOrIP;
57 this.portNumber = portNumber;
58 this.userName = userName;
59 this.password = password;
60 this.sslEnabled =
false;
61 this.sslVerify =
false;
63 throw new IllegalArgumentException(
"SQLite database type invalid for CaseDbConnectionInfo. CaseDbConnectionInfo should be used only for remote database types.");
66 this.customSslValidationClassName =
"";
98 boolean sslEnabled,
boolean sslVerify, String customSslValidationClassName) {
99 this.hostNameOrIP = hostNameOrIP;
100 this.portNumber = portNumber;
101 this.userName = userName;
102 this.password = password;
103 this.sslEnabled = sslEnabled;
104 this.sslVerify = sslVerify;
106 throw new IllegalArgumentException(
"SQLite database type invalid for CaseDbConnectionInfo. CaseDbConnectionInfo should be used only for remote database types.");
108 this.dbType = dbType;
109 this.customSslValidationClassName = customSslValidationClassName;
117 return this.hostNameOrIP;
121 return this.portNumber;
125 return this.userName;
129 return this.password;
137 this.hostNameOrIP = host;
141 this.portNumber = port;
145 this.userName = user;
149 this.password = pass;
157 this.sslEnabled = sslEnabled;
165 this.sslVerify = sslVerify;
169 return customSslValidationClassName;
173 this.customSslValidationClassName = customSslValidationClassName;
void setPort(String port)
void setSslVerify(boolean sslVerify)
void setHost(String host)
CaseDbConnectionInfo(String hostNameOrIP, String portNumber, String userName, String password, DbType dbType)
void setUserName(String user)
String getCustomSslValidationClassName()
CaseDbConnectionInfo(String hostNameOrIP, String portNumber, String userName, String password, DbType dbType, boolean sslEnabled, boolean sslVerify, String customSslValidationClassName)
void setCustomSslValidationClassName(String customSslValidationClassName)
void setSslEnabled(boolean sslEnabled)
void setPassword(String pass)
void setDbType(DbType db)