@@ -29,7 +29,15 @@ public class DatabaseClientBuilder {
2929 public final static String PREFIX = "marklogic.client." ;
3030 public final static String AUTH_TYPE_BASIC = "basic" ;
3131 public final static String AUTH_TYPE_DIGEST = "digest" ;
32- public final static String AUTH_TYPE_MARKLOGIC_CLOUD = "cloud" ;
32+
33+ public final static String AUTH_TYPE_CLOUD = "cloud" ;
34+
35+ /**
36+ * @deprecated as of 8.1.0, use AUTH_TYPE_CLOUD instead
37+ */
38+ @ Deprecated
39+ public final static String AUTH_TYPE_MARKLOGIC_CLOUD = AUTH_TYPE_CLOUD ;
40+
3341 public final static String AUTH_TYPE_KERBEROS = "kerberos" ;
3442 public final static String AUTH_TYPE_CERTIFICATE = "certificate" ;
3543 public final static String AUTH_TYPE_SAML = "saml" ;
@@ -150,7 +158,7 @@ public DatabaseClientBuilder withDigestAuth(String username, String password) {
150158 }
151159
152160 public DatabaseClientBuilder withCloudAuth (String apiKey , String basePath ) {
153- return withAuthType (AUTH_TYPE_MARKLOGIC_CLOUD )
161+ return withAuthType (AUTH_TYPE_CLOUD )
154162 .withCloudApiKey (apiKey )
155163 .withBasePath (basePath );
156164 }
@@ -163,7 +171,7 @@ public DatabaseClientBuilder withCloudAuth(String apiKey, String basePath) {
163171 * @since 6.3.0
164172 */
165173 public DatabaseClientBuilder withCloudAuth (String apiKey , String basePath , Integer tokenDuration ) {
166- return withAuthType (AUTH_TYPE_MARKLOGIC_CLOUD )
174+ return withAuthType (AUTH_TYPE_CLOUD )
167175 .withCloudApiKey (apiKey )
168176 .withBasePath (basePath )
169177 .withCloudTokenDuration (tokenDuration != null ? tokenDuration .toString () : null );
0 commit comments