22
33import com .marklogic .rest .util .RestConfig ;
44
5+ import javax .net .ssl .SSLContext ;
6+
57/**
68 * Defines the configuration data for talking to the Mgmt REST API. Also includes properties for the security user, as this
79 * user is typically needed for creating an app-specific user (which may depend on app-specific roles and privileges)
8- * which is then used for deploying every other resources. If securityUsername and securityPassword are not set, they default
9- * to the username/password attribute values.
10+ * which is then used for deploying every other resources.
11+ *
12+ * If securityUsername and securityPassword are not set, they default to the username/password attribute values.
13+ * Additionally, as of version 3.8.3, setSecuritySslContext can be called to provide an SSLContext for the connection
14+ * made using securityUsername and securityPassword.
1015 */
1116public class ManageConfig extends RestConfig {
1217
@@ -19,6 +24,7 @@ public class ManageConfig extends RestConfig {
1924
2025 private String securityUsername ;
2126 private String securityPassword ;
27+ private SSLContext securitySslContext ;
2228
2329 private boolean cleanJsonPayloads = false ;
2430
@@ -105,4 +111,12 @@ public String getSecurityPassword() {
105111 public void setSecurityPassword (String securityPassword ) {
106112 this .securityPassword = securityPassword ;
107113 }
114+
115+ public SSLContext getSecuritySslContext () {
116+ return securitySslContext ;
117+ }
118+
119+ public void setSecuritySslContext (SSLContext securitySslContext ) {
120+ this .securitySslContext = securitySslContext ;
121+ }
108122}
0 commit comments