Skip to content

Commit b4eac05

Browse files
authored
Merge pull request #1531 from marklogic/feature/small-rename
Renamed to withCloudAuth
2 parents 8f95564 + 41a1c0e commit b4eac05

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

marklogic-client-api/src/main/java/com/marklogic/client/DatabaseClientBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public DatabaseClientBuilder withDigestAuth(String username, String password) {
141141
.withPassword(password);
142142
}
143143

144-
public DatabaseClientBuilder withMarkLogicCloudAuth(String apiKey, String basePath) {
144+
public DatabaseClientBuilder withCloudAuth(String apiKey, String basePath) {
145145
return withAuthType(AUTH_TYPE_MARKLOGIC_CLOUD)
146146
.withCloudApiKey(apiKey)
147147
.withBasePath(basePath);

marklogic-client-api/src/test/java/com/marklogic/client/test/DatabaseClientBuilderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ void basic() {
100100
@Test
101101
void cloudWithBasePath() {
102102
bean = Common.newClientBuilder()
103-
.withMarkLogicCloudAuth("my-key", "/my/path")
103+
.withCloudAuth("my-key", "/my/path")
104104
.buildBean();
105105

106106
DatabaseClientFactory.MarkLogicCloudAuthContext context =

marklogic-client-api/src/test/java/com/marklogic/client/test/MarkLogicCloudAuthenticationDebugger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static void main(String[] args) throws Exception {
2323
// Expected to default to the JVM's default SSL context and default trust manager
2424
DatabaseClient client = new DatabaseClientBuilder()
2525
.withHost(cloudHost)
26-
.withMarkLogicCloudAuth(apiKey, basePath)
26+
.withCloudAuth(apiKey, basePath)
2727
// Have to use "ANY", as the default is "COMMON", which won't work for our selfsigned cert
2828
.withSSLHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier.ANY)
2929
.build();

0 commit comments

Comments
 (0)