Skip to content

Commit b8173d0

Browse files
authored
Merge pull request #88 from oracle/release_2018-11-15
Releasing version 1.3.1
2 parents 21b957b + 75670f7 commit b8173d0

File tree

62 files changed

+1069
-166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1069
-166
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
1313
### Added
1414
- N/A
1515

16+
## 1.3.1 - 2018-11-15
17+
### Added
18+
- Support for VCN transit routing in the Networking service
19+
20+
### Changed
21+
- Bouncy Castle jar is no longer bundled within the shaded distribution `oci-java-sdk-shaded-full` and now must be included in the CLASSPATH.
22+
1623
## 1.3.0 - 2018-11-01
1724
### Added
1825
- Support for modifying the route table, DHCP options, and security lists associated with a subnet in the Networking service.

bmc-addons/bmc-apache-connector-provider/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.oracle.oci.sdk</groupId>
77
<artifactId>oci-java-sdk-addons</artifactId>
8-
<version>1.3.0</version>
8+
<version>1.3.1</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

@@ -37,7 +37,7 @@
3737
<dependency>
3838
<groupId>com.oracle.oci.sdk</groupId>
3939
<artifactId>oci-java-sdk-common</artifactId>
40-
<version>1.3.0</version>
40+
<version>1.3.1</version>
4141
</dependency>
4242
</dependencies>
4343
</project>

bmc-addons/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.oracle.oci.sdk</groupId>
77
<artifactId>oci-java-sdk</artifactId>
8-
<version>1.3.0</version>
8+
<version>1.3.1</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

bmc-audit/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.oracle.oci.sdk</groupId>
77
<artifactId>oci-java-sdk</artifactId>
8-
<version>1.3.0</version>
8+
<version>1.3.1</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

@@ -19,7 +19,7 @@
1919
<dependency>
2020
<groupId>com.oracle.oci.sdk</groupId>
2121
<artifactId>oci-java-sdk-common</artifactId>
22-
<version>1.3.0</version>
22+
<version>1.3.1</version>
2323
</dependency>
2424
</dependencies>
2525

bmc-bom/pom.xml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.oracle.oci.sdk</groupId>
77
<artifactId>oci-java-sdk</artifactId>
8-
<version>1.3.0</version>
8+
<version>1.3.1</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111
<artifactId>oci-java-sdk-bom</artifactId>
@@ -19,86 +19,86 @@
1919
<dependency>
2020
<groupId>com.oracle.oci.sdk</groupId>
2121
<artifactId>oci-java-sdk-common</artifactId>
22-
<version>1.3.0</version>
22+
<version>1.3.1</version>
2323
<optional>false</optional>
2424
</dependency>
2525
<!-- Service modules, alpha sorted -->
2626
<dependency>
2727
<groupId>com.oracle.oci.sdk</groupId>
2828
<artifactId>oci-java-sdk-audit</artifactId>
29-
<version>1.3.0</version>
29+
<version>1.3.1</version>
3030
<optional>false</optional>
3131
</dependency>
3232
<dependency>
3333
<groupId>com.oracle.oci.sdk</groupId>
3434
<artifactId>oci-java-sdk-containerengine</artifactId>
35-
<version>1.3.0</version>
35+
<version>1.3.1</version>
3636
<optional>false</optional>
3737
</dependency>
3838
<dependency>
3939
<groupId>com.oracle.oci.sdk</groupId>
4040
<artifactId>oci-java-sdk-core</artifactId>
41-
<version>1.3.0</version>
41+
<version>1.3.1</version>
4242
<optional>false</optional>
4343
</dependency>
4444
<dependency>
4545
<groupId>com.oracle.oci.sdk</groupId>
4646
<artifactId>oci-java-sdk-database</artifactId>
47-
<version>1.3.0</version>
47+
<version>1.3.1</version>
4848
<optional>false</optional>
4949
</dependency>
5050
<dependency>
5151
<groupId>com.oracle.oci.sdk</groupId>
5252
<artifactId>oci-java-sdk-dns</artifactId>
53-
<version>1.3.0</version>
53+
<version>1.3.1</version>
5454
<optional>false</optional>
5555
</dependency>
5656
<dependency>
5757
<groupId>com.oracle.oci.sdk</groupId>
5858
<artifactId>oci-java-sdk-email</artifactId>
59-
<version>1.3.0</version>
59+
<version>1.3.1</version>
6060
<optional>false</optional>
6161
</dependency>
6262
<dependency>
6363
<groupId>com.oracle.oci.sdk</groupId>
6464
<artifactId>oci-java-sdk-filestorage</artifactId>
65-
<version>1.3.0</version>
65+
<version>1.3.1</version>
6666
<optional>false</optional>
6767
</dependency>
6868
<dependency>
6969
<groupId>com.oracle.oci.sdk</groupId>
7070
<artifactId>oci-java-sdk-identity</artifactId>
71-
<version>1.3.0</version>
71+
<version>1.3.1</version>
7272
<optional>false</optional>
7373
</dependency>
7474
<dependency>
7575
<groupId>com.oracle.oci.sdk</groupId>
7676
<artifactId>oci-java-sdk-loadbalancer</artifactId>
77-
<version>1.3.0</version>
77+
<version>1.3.1</version>
7878
<optional>false</optional>
7979
</dependency>
8080
<dependency>
8181
<groupId>com.oracle.oci.sdk</groupId>
8282
<artifactId>oci-java-sdk-objectstorage</artifactId>
83-
<version>1.3.0</version>
83+
<version>1.3.1</version>
8484
<optional>false</optional>
8585
</dependency>
8686
<dependency>
8787
<groupId>com.oracle.oci.sdk</groupId>
8888
<artifactId>oci-java-sdk-resourcesearch</artifactId>
8989
<optional>false</optional>
90-
<version>1.3.0</version>
90+
<version>1.3.1</version>
9191
</dependency>
9292
<dependency>
9393
<groupId>com.oracle.oci.sdk</groupId>
9494
<optional>false</optional>
9595
<artifactId>oci-java-sdk-addons-apache</artifactId>
96-
<version>1.3.0</version>
96+
<version>1.3.1</version>
9797
</dependency>
9898
<dependency>
9999
<groupId>com.oracle.oci.sdk</groupId>
100100
<artifactId>oci-java-sdk-keymanagement</artifactId>
101-
<version>1.3.0</version>
101+
<version>1.3.1</version>
102102
<optional>false</optional>
103103
</dependency>
104104
</dependencies>

bmc-common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.oracle.oci.sdk</groupId>
77
<artifactId>oci-java-sdk</artifactId>
8-
<version>1.3.0</version>
8+
<version>1.3.1</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

bmc-common/src/main/java/com/oracle/bmc/Services.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ public static Service create(final String serviceName, final String serviceEndpo
3838
.build();
3939
}
4040

41+
/**
42+
* Get Service instance based on service name.
43+
*
44+
* @param serviceName service name should be UPPER CASE.
45+
* @return service instance
46+
*/
47+
public static Service getServiceByName(final String serviceName) {
48+
return SERVICE_CACHE.get(serviceName);
49+
}
50+
4151
@Builder(builderClassName = "ServiceBuilder", builderMethodName = "serviceBuilder")
4252
private static synchronized Service create(
4353
final String serviceName,

bmc-common/src/main/java/com/oracle/bmc/auth/AbstractRequestingAuthenticationDetailsProvider.java

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import java.security.NoSuchAlgorithmException;
1616
import java.security.interfaces.RSAPrivateKey;
1717
import java.security.interfaces.RSAPublicKey;
18-
import java.util.Arrays;
1918
import java.util.Set;
2019

2120
/**
@@ -125,15 +124,22 @@ protected static class CachingSessionKeySupplier implements SessionKeySupplier {
125124

126125
protected CachingSessionKeySupplier(final SessionKeySupplier delegate) {
127126
this.delegate = delegate;
128-
this.setPrivateKeyBytes(delegate.getPrivateKey());
127+
this.setPrivateKeyBytes((RSAPrivateKey) delegate.getKeyPair().getPrivate());
129128
}
130129

131130
@Override
131+
public KeyPair getKeyPair() {
132+
return delegate.getKeyPair();
133+
}
134+
135+
@Override
136+
@Deprecated
132137
public synchronized RSAPublicKey getPublicKey() {
133138
return delegate.getPublicKey();
134139
}
135140

136141
@Override
142+
@Deprecated
137143
public synchronized RSAPrivateKey getPrivateKey() {
138144
return delegate.getPrivateKey();
139145
}
@@ -145,7 +151,7 @@ public synchronized void refreshKeys() {
145151

146152
// private keys can be refreshed asynchronously, always update first
147153
protected synchronized byte[] getPrivateKeyBytes() {
148-
setPrivateKeyBytes(this.getPrivateKey());
154+
setPrivateKeyBytes((RSAPrivateKey) this.getKeyPair().getPrivate());
149155
return this.privateKeyBytes;
150156
}
151157

@@ -181,20 +187,29 @@ protected SessionKeySupplierImpl() {
181187
this.keyPair = GENERATOR.generateKeyPair();
182188
}
183189

190+
@Override
191+
public KeyPair getKeyPair() {
192+
return keyPair;
193+
}
194+
184195
/**
185196
* Gets the public key
186197
* @return the public key, not null
198+
* @deprecated use getKeyPair() instead
187199
*/
188200
@Override
201+
@Deprecated
189202
public RSAPublicKey getPublicKey() {
190203
return (RSAPublicKey) keyPair.getPublic();
191204
}
192205

193206
/**
194207
* Gets the private key
195208
* @return the private key, not null
209+
* @deprecated use getKeyPair() instead
196210
*/
197211
@Override
212+
@Deprecated
198213
public RSAPrivateKey getPrivateKey() {
199214
return (RSAPrivateKey) keyPair.getPrivate();
200215
}

bmc-common/src/main/java/com/oracle/bmc/auth/SessionKeySupplier.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*/
44
package com.oracle.bmc.auth;
55

6+
import java.security.KeyPair;
67
import java.security.interfaces.RSAPrivateKey;
78
import java.security.interfaces.RSAPublicKey;
89

@@ -14,16 +15,26 @@
1415
*/
1516
public interface SessionKeySupplier {
1617

18+
/**
19+
* Returns the current RSA key pair.
20+
* @return The RSA key pair.
21+
*/
22+
KeyPair getKeyPair();
23+
1724
/**
1825
* Gets the public key
1926
* @return the public key, not null
27+
* @deprecated use getKeyPair instead
2028
*/
29+
@Deprecated
2130
RSAPublicKey getPublicKey();
2231

2332
/**
2433
* Gets the private key
2534
* @return the private key, not null
35+
* @deprecated use getKeyPair instead
2636
*/
37+
@Deprecated
2738
RSAPrivateKey getPrivateKey();
2839

2940
/**

bmc-common/src/main/java/com/oracle/bmc/auth/SimpleAuthenticationDetailsProvider.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
package com.oracle.bmc.auth;
55

66
import java.io.InputStream;
7-
import java.nio.charset.StandardCharsets;
87

98
import com.google.common.base.Supplier;
109
import com.oracle.bmc.Region;

0 commit comments

Comments
 (0)