Commit e6a0ada 1 parent 07ac69d commit e6a0ada Copy full SHA for e6a0ada
File tree 9 files changed +20
-21
lines changed
ojdbc-provider-azure/src/main/java/oracle/jdbc/provider/azure
ojdbc-provider-jackson-oson/src/main/java/oracle/jdbc/provider/oson
ojdbc-provider-oci/src/main/java/oracle/jdbc/provider/oci/configuration
9 files changed +20
-21
lines changed Original file line number Diff line number Diff line change 59
59
* {@link TokenCredential} created by {@link TokenCredentialFactory} is passed
60
60
* to the {@link #request(TokenCredential, ParameterSet)} method of a subclass.
61
61
* </p>
62
+ * @param <T> the type
62
63
*/
63
64
public abstract class AzureResourceFactory <T > implements ResourceFactory <T > {
64
65
Original file line number Diff line number Diff line change 38
38
39
39
package oracle .jdbc .provider .azure .configuration ;
40
40
41
- import oracle .jdbc .driver .OracleConfigurationJsonProvider ;
41
+ import oracle .jdbc .driver .configuration . OracleConfigurationParsableProvider ;
42
42
import oracle .jdbc .provider .azure .keyvault .KeyVaultSecretFactory ;
43
43
import oracle .jdbc .provider .parameter .Parameter ;
44
44
import oracle .jdbc .provider .parameter .ParameterSet ;
52
52
53
53
/**
54
54
* A provider for JSON payload which contains configuration from Azure Vault.
55
- * See {@link #getJson (String)} for the spec of the JSON payload.
55
+ * See {@link #getInputStream (String)} for the spec of the JSON payload.
56
56
*/
57
- public class AzureVaultJsonProvider extends OracleConfigurationJsonProvider {
57
+ public class AzureVaultJsonProvider extends OracleConfigurationParsableProvider {
58
58
59
59
/**
60
60
* Parser that recognizes the "key" and "value" field,
@@ -85,7 +85,7 @@ public class AzureVaultJsonProvider extends OracleConfigurationJsonProvider {
85
85
* @return JSON payload
86
86
**/
87
87
@ Override
88
- public InputStream getJson (String secretIdentifier ) {
88
+ public InputStream getInputStream (String secretIdentifier ) {
89
89
final String valueFieldName = "value" ;
90
90
Map <String , String > optionsWithSecret = new HashMap <>(options );
91
91
optionsWithSecret .put (valueFieldName , secretIdentifier );
Original file line number Diff line number Diff line change @@ -532,7 +532,7 @@ public void writeNull() throws IOException {
532
532
533
533
/**
534
534
* Checks if the generator is closed.
535
- * @return
535
+ * @return true if the generator is closed, otherwise false.
536
536
*/
537
537
@ Override
538
538
public boolean isClosed () {
Original file line number Diff line number Diff line change 74
74
* <li>{@link Duration} - {@link OsonDurationDeserializer} and {@link OsonDurationSerializer}</li>
75
75
* <li>{@link BigInteger} - {@link OsonBigIntegerDeserializer} and {@link OsonBigIntegerSerializer}</li>
76
76
* <li>{@link Year} - {@link OsonYearDeserializer} and {@link OsonYearSerializer}</li>
77
- * <li>{@link byte[]} - {@link OsonByteDeserializer} and {@link OsonByteSerializer}</li>
77
+ * <li>byte[] - {@link OsonByteDeserializer} and {@link OsonByteSerializer}</li>
78
78
* <li>{@link java.util.Date}- {@link OsonDateSerializer} and {@link OsonDateDeserializer} </li>
79
79
* <li>{@link java.sql.Date}- {@link OsonDateSerializer} and {@link OsonSqlDateDeserializer} </li>
80
80
* <li>{@link Timestamp}- {@link OsonDateSerializer} and {@link OsonTimeStampDeserializer} </li>
Original file line number Diff line number Diff line change 59
59
*
60
60
* @see StdScalarDeserializer
61
61
* @see OsonParser
62
- * @see byte[]
63
- */
62
+ */
64
63
public class OsonByteDeserializer extends StdScalarDeserializer <byte []> {
65
- /**
64
+ /**
66
65
* A singleton instance of the deserializer.
67
66
*/
68
67
public static final OsonByteDeserializer INSTANCE = new OsonByteDeserializer ();
69
68
70
- /**
71
- * Default constructor that initializes the deserializer for the {@link byte[]} class.
69
+ /**
70
+ * Default constructor that initializes the deserializer for the byte[] class.
72
71
*/
73
72
protected OsonByteDeserializer () {
74
73
super (Year .class );
Original file line number Diff line number Diff line change 55
55
*
56
56
* @see StdSerializer
57
57
* @see OsonGenerator
58
- * @see byte[]
59
58
*/
60
59
public class OsonByteSerializer extends StdSerializer <byte []> {
61
60
Original file line number Diff line number Diff line change 38
38
39
39
package oracle .jdbc .provider .oci .configuration ;
40
40
41
- import oracle .jdbc .driver .OracleConfigurationJsonProvider ;
41
+ import oracle .jdbc .driver .configuration . OracleConfigurationParsableProvider ;
42
42
import oracle .jdbc .provider .oci .objectstorage .ObjectFactory ;
43
43
import oracle .jdbc .provider .parameter .ParameterSet ;
44
44
import oracle .jdbc .util .OracleConfigurationCache ;
49
49
50
50
/**
51
51
* A provider for JSON payload which contains configuration from OCI Object
52
- * Storage. See {@link #getJson (String)} for the spec of the JSON payload.
52
+ * Storage. See {@link #getInputStream (String)} for the spec of the JSON payload.
53
53
*/
54
54
public class OciObjectStorageProvider
55
- extends OracleConfigurationJsonProvider {
55
+ extends OracleConfigurationParsableProvider {
56
56
57
57
/**
58
58
* {@inheritDoc}
@@ -71,7 +71,7 @@ public class OciObjectStorageProvider
71
71
* @return JSON payload
72
72
*/
73
73
@ Override
74
- public InputStream getJson (String objectUrl ) {
74
+ public InputStream getInputStream (String objectUrl ) {
75
75
// Add implicit prefix if not informed
76
76
if (!objectUrl .startsWith ("https://" )) {
77
77
objectUrl = "https://" + objectUrl ;
Original file line number Diff line number Diff line change 1
1
package oracle .jdbc .provider .oci .configuration ;
2
2
3
- import oracle .jdbc .driver .OracleConfigurationJsonProvider ;
3
+ import oracle .jdbc .driver .configuration . OracleConfigurationParsableProvider ;
4
4
import oracle .jdbc .provider .oci .vault .SecretFactory ;
5
5
import oracle .jdbc .provider .parameter .ParameterSet ;
6
6
import oracle .jdbc .util .OracleConfigurationCache ;
13
13
14
14
/**
15
15
* A provider for JSON payload which contains configuration from OCI Vault.
16
- * See {@link #getJson (String)} for the spec of the JSON payload.
16
+ * See {@link #getInputStream (String)} for the spec of the JSON payload.
17
17
**/
18
- public class OciVaultJsonProvider extends OracleConfigurationJsonProvider {
18
+ public class OciVaultJsonProvider extends OracleConfigurationParsableProvider {
19
19
20
20
/**
21
21
* {@inheritDoc}
@@ -30,7 +30,7 @@ public class OciVaultJsonProvider extends OracleConfigurationJsonProvider {
30
30
* @return JSON payload
31
31
**/
32
32
@ Override
33
- public InputStream getJson (String secretOcid ) {
33
+ public InputStream getInputStream (String secretOcid ) {
34
34
final String valueFieldName = "value" ;
35
35
Map <String , String > optionsWithOcid = new HashMap <>(options );
36
36
optionsWithOcid .put (valueFieldName , secretOcid );
Original file line number Diff line number Diff line change 32
32
<properties >
33
33
<maven .compiler.target>1.8</maven .compiler.target>
34
34
<maven .compiler.source>1.8</maven .compiler.source>
35
- <jdbc .version>23.6 .0.24.10 </jdbc .version>
35
+ <jdbc .version>23.7 .0.25.01 </jdbc .version>
36
36
<junit .version>5.9.0</junit .version>
37
37
<mockito .version>4.11.0</mockito .version>
38
38
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
You can’t perform that action at this time.
0 commit comments