Skip to content

Commit 087e978

Browse files
docs(readme): update readmes
1 parent 2fc3d6d commit 087e978

File tree

2 files changed

+11
-61
lines changed

2 files changed

+11
-61
lines changed

MIGRATION-V11.md

Lines changed: 0 additions & 50 deletions
This file was deleted.

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ The file downloaded will be called `ibm-credentials.env`. This is the name the S
106106
As long as you set that up correctly, you don't have to worry about setting any authentication options in your code. So, for example, if you created and downloaded the credential file for your Discovery instance, you just need to do the following:
107107

108108
```java
109-
Discovery service = new Discovery("2019-04-30");
109+
Discovery service = new Discovery("2023-03-31");
110110
```
111111

112112
And that's it!
@@ -144,23 +144,23 @@ Builder pattern approach:
144144
Authenticator authenticator = new IamAuthenticator.Builder()
145145
.apikey("<iam_api_key>")
146146
.build();
147-
Discovery service = new Discovery("2019-04-30", authenticator);
147+
Discovery service = new Discovery("2023-03-31", authenticator);
148148
```
149149

150150
Deprecated constructor approach:
151151

152152
```java
153153
// letting the SDK manage the IAM token
154154
Authenticator authenticator = new IamAuthenticator("<iam_api_key>");
155-
Discovery service = new Discovery("2019-04-30", authenticator);
155+
Discovery service = new Discovery("2023-03-31", authenticator);
156156
```
157157

158158
Supplying the access token:
159159

160160
```java
161161
// assuming control of managing IAM token
162162
Authenticator authenticator = new BearerTokenAuthenticator("<access_token>");
163-
Discovery service = new Discovery("2019-04-30", authenticator);
163+
Discovery service = new Discovery("2023-03-31", authenticator);
164164
```
165165

166166
#### Username and password
@@ -172,22 +172,22 @@ Authenticator authenticator = new BasicAuthenticator.Builder()
172172
.username("<username>")
173173
.password("<password>")
174174
.build();
175-
Discovery service = new Discovery("2019-04-30", authenticator);
175+
Discovery service = new Discovery("2023-03-31", authenticator);
176176
```
177177

178178
Deprecated constructor approach:
179179

180180
```java
181181
Authenticator authenticator = new BasicAuthenticator("<username>", "<password>");
182-
Discovery service = new Discovery("2019-04-30", authenticator);
182+
Discovery service = new Discovery("2023-03-31", authenticator);
183183
```
184184

185185
#### ICP
186186
Authenticating with ICP is similar to the basic username and password method, except that you need to make sure to disable SSL verification to authenticate properly. See [here](#configuring-the-http-client) for more information.
187187

188188
```java
189189
Authenticator authenticator = new BasicAuthenticator("<username>", "<password>");
190-
Discovery service = new Discovery("2019-04-30", authenticator);
190+
Discovery service = new Discovery("2023-03-31", authenticator);
191191

192192
HttpConfigOptions options = new HttpConfigOptions.Builder()
193193
.disableSslVerification(true)
@@ -210,7 +210,7 @@ Authenticator authenticator = new CloudPakForDataAuthenticator.Builder()
210210
.disableSSLVerification(true)
211211
.headers(null)
212212
.build();
213-
Discovery service = new Discovery("2019-04-30", authenticator);
213+
Discovery service = new Discovery("2023-03-31", authenticator);
214214
service.setServiceUrl("<service CP4D URL>");
215215
```
216216

@@ -225,14 +225,14 @@ Authenticator authenticator = new CloudPakForDataAuthenticator(
225225
true, // disabling SSL verification
226226
null,
227227
);
228-
Discovery service = new Discovery("2019-04-30", authenticator);
228+
Discovery service = new Discovery("2023-03-31", authenticator);
229229
service.setServiceUrl("<service CP4D URL>");
230230
```
231231

232232
```java
233233
// assuming control of managing the access token
234234
Authenticator authenticator = new BearerTokenAuthenticator("<access_token>");
235-
Discovery service = new Discovery("2019-04-30", authenticator);
235+
Discovery service = new Discovery("2023-03-31", authenticator);
236236
service.setServiceUrl("<service CP4D URL>");
237237
```
238238

@@ -288,7 +288,7 @@ Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("proxyHost", 8080
288288
IamAuthenticator authenticator = new IamAuthenticator(apiKey);
289289
authenticator.setProxy(proxy);
290290

291-
Discovery service = new Discovery("2019-04-30", authenticator);
291+
Discovery service = new Discovery("2023-03-31", authenticator);
292292

293293
// setting configuration options
294294
HttpConfigOptions options = new HttpConfigOptions.Builder()

0 commit comments

Comments
 (0)