Skip to content

Commit

Permalink
Merge pull request #12 from IBM/update-version
Browse files Browse the repository at this point in the history
update latest sdk
  • Loading branch information
IdanAdar authored Feb 15, 2021
2 parents 85b9c5e + 33412de commit 8a031c6
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ Service name | Imported class name
<dependency>
<groupId>com.ibm.cloud</groupId>
<artifactId>secrets-manager-sdk</artifactId>
<version>0.0.1</version>
<version>0.0.2</version>
</dependency>
```

##### Gradle

```gradle
'com.ibm.cloud:secrets-manager-sdk:0.0.1'
'com.ibm.cloud:secrets-manager-sdk:0.0.2'
```

## Authentication
Expand All @@ -73,7 +73,9 @@ authenticators from `com.ibm.cloud.sdk.core.security`.
```java
import com.ibm.cloud.sdk.core.security.IamAuthenticator;
...
IamAuthenticator iamAuthenticator = new IamAuthenticator("<IBM_CLOUD_API_KEY>");
IamAuthenticator iamAuthenticator = new IamAuthenticator.Builder()
.apikey("<IBM_CLOUD_API_KEY>")
.build();
```

To learn more about IAM authenticators and how to use them in your Java application, see
Expand Down Expand Up @@ -105,8 +107,10 @@ public class main {
protected static IbmCloudSecretsManagerApi sm;
protected static IamAuthenticator iamAuthenticator;

public static void main(String[] args) {
iamAuthenticator = new IamAuthenticator("IBM_CLOUD_API_KEY");
public static void main(String[] args) {
iamAuthenticator = new IamAuthenticator.Builder()
.apikey("IBM_CLOUD_API_KEY")
.build();
sm = new IbmCloudSecretsManagerApi("My Secrets-Manager service", iamAuthenticator);
sm.setServiceUrl("SERVICE_URL");

Expand Down
2 changes: 1 addition & 1 deletion modules/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>secrets-manager-sdk</artifactId>
<groupId>com.ibm.cloud</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/coverage-reports/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>secrets-manager-sdk</artifactId>
<groupId>com.ibm.cloud</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
<relativePath>../..</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion modules/ibm-cloud-secrets-manager-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>secrets-manager-sdk</artifactId>
<groupId>com.ibm.cloud</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ public class IbmCloudSecretsManagerApiIntegrationTest extends PowerMockTestCase

@BeforeClass
public void initTest() {
iamAuthenticator = new IamAuthenticator(System.getenv("SECRETS_MANAGER_API_APIKEY"));
iamAuthenticator = new IamAuthenticator.Builder()
.apikey(System.getenv("SECRETS_MANAGER_API_APIKEY"))
.build();
ibmCloudSecretsManagerApiService = new IbmCloudSecretsManagerApi("Secrets Manager integration test", iamAuthenticator);
ibmCloudSecretsManagerApiService.setServiceUrl(System.getenv("SERVICE_URL"));
}
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
<url>https://github.com/IBM/secrets-manager-java-sdk</url>

<groupId>com.ibm.cloud</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
<packaging>pom</packaging>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<sdk-core-version>9.5.4</sdk-core-version>
<sdk-core-version>9.8.1</sdk-core-version>

<git-repository-name>secrets-manager-java-sdk</git-repository-name>

Expand Down

0 comments on commit 8a031c6

Please sign in to comment.