Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,6 @@ public static void main(String[] args) throws SQLException {
connectionProps.put("oracle.jdbc.provider.password.vaultUrl", "https://me-vault-test.vault.azure.net");
connectionProps.put("oracle.jdbc.provider.password.secretName", "db-password");

// TLS Configuration for secure connection
connectionProps.put("oracle.jdbc.provider.tlsConfiguration", "ojdbc-provider-azure-key-vault-tls");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.vaultUrl",
"https://your-vault-url.vault.azure.net");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.secretName",
"your-wallet-base64-secret-name");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.type", "SSO");

ds.setConnectionProperties(connectionProps);

try (Connection cn = ds.getConnection()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,6 @@ public static void main(String[] args) throws SQLException {
connectionProps.put("oracle.jdbc.provider.connectionString.tnsAlias",
"YOUR_TNS_ALIAS");

// TLS Configuration for secure connection
connectionProps.put("oracle.jdbc.provider.tlsConfiguration", "ojdbc-provider-azure-key-vault-tls");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.vaultUrl",
"https://your-vault-url.vault.azure.net");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.secretName",
"your-wallet-base64-secret-name");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.type",
"SSO");

ds.setConnectionProperties(connectionProps);

try (Connection cn = ds.getConnection()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,6 @@ public static void main(String[] args) throws SQLException {
connectionProps.put("oracle.jdbc.provider.password.secretName",
"your-seps-secret-name");

// TLS Configuration for secure connection
connectionProps.put("oracle.jdbc.provider.tlsConfiguration", "ojdbc-provider-azure-key-vault-tls");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.vaultUrl",
"https://your-vault-url.vault.azure.net");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.secretName",
"your-wallet-base64-secret-name");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.type",
"SSO");

ds.setConnectionProperties(connectionProps);

try (Connection cn = ds.getConnection()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,6 @@ public static void main(String[] args) throws SQLException {
connectionProps.put("oracle.jdbc.provider.username.connectionStringIndex","1");
connectionProps.put("oracle.jdbc.provider.password.connectionStringIndex","1");

// TLS Configuration for secure connection
connectionProps.put("oracle.jdbc.provider.tlsConfiguration", "ojdbc-provider-azure-key-vault-tls");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.vaultUrl",
"https://your-vault-url.vault.azure.net");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.secretName",
"your-wallet-base64-secret-name");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.type",
"SSO");

ds.setConnectionProperties(connectionProps);

try (Connection cn = ds.getConnection()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,6 @@ public static void main(String[] args) throws SQLException {
connectionProps.put("oracle.jdbc.provider.username.vaultUrl", "https://me-vault-test.vault.azure.net");
connectionProps.put("oracle.jdbc.provider.username.secretName", "db-username");

// TLS Configuration for secure connection
connectionProps.put("oracle.jdbc.provider.tlsConfiguration", "ojdbc-provider-azure-key-vault-tls");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.vaultUrl",
"https://your-vault-url.vault.azure.net");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.secretName",
"your-wallet-base64-secret-name");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.type",
"SSO");

ds.setConnectionProperties(connectionProps);

try (Connection cn = ds.getConnection()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@ public static void main(String[] args) throws SQLException {
connectionProps.put("oracle.jdbc.provider.connectionString.tnsAlias",
"YOUR_TNS_ALIAS");

// TLS Configuration for secure connection
connectionProps.put("oracle.jdbc.provider.tlsConfiguration",
"ojdbc-provider-gcp-secretmanager-tls");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.secretVersionName",
"projects/your-project-id/secrets/your-wallet-secret/versions/1");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.type", "SSO");

ds.setConnectionProperties(connectionProps);

try (Connection cn = ds.getConnection()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,6 @@ public static void main(String[] args) {
connectionProps.put("oracle.jdbc.provider.password.secretVersionName",
"projects/{your-project-id}/secrets/{your-secret-name}/versions/{version-number}");

// TLS Configuration Provider
connectionProps.put("oracle.jdbc.provider.tlsConfiguration",
"ojdbc-provider-gcp-secretmanager-tls");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.type","SSO");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.secretVersionName",
"projects/{your-project-id}/secrets/{your-secret-name}/versions/{version-number}");

ds.setConnectionProperties(connectionProps);

try (Connection cn = ds.getConnection()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,6 @@ public static void main(String[] args) {
connectionProps.put("oracle.jdbc.provider.username.connectionStringIndex","1");
connectionProps.put("oracle.jdbc.provider.password.connectionStringIndex","1");

connectionProps.put("oracle.jdbc.provider.tlsConfiguration",
"ojdbc-provider-gcp-secretmanager-tls");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.secretVersionName",
"projects/{your-project-id}/secrets/{your-secret-name}/versions/{version-number}");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.type","SSO");

ds.setConnectionProperties(connectionProps);

try (Connection cn = ds.getConnection()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@ public static void main(String[] args) throws SQLException {
"ojdbc-provider-gcp-secretmanager-username");
connectionProps.put("oracle.jdbc.provider.username.secretVersionName",
"projects/{your-project-id}/secrets/{your-secret-name}/versions/{version-number}");
// TLS Configuration Provider
connectionProps.put("oracle.jdbc.provider.tlsConfiguration",
"ojdbc-provider-gcp-secretmanager-tls");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.type","SSO");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.secretVersionName",
"projects/{your-project-id}/secrets/{your-secret-name}/versions/{version-number}");
ds.setConnectionProperties(connectionProps);

try (Connection cn = ds.getConnection()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ public static void main(String[] args) throws SQLException {
connectionProps.put("oracle.jdbc.provider.connectionString.tnsAlias",
"YOUR_TNS_ALIAS");

// TLS Configuration for secure connection
connectionProps.put("oracle.jdbc.provider.tlsConfiguration",
"ojdbc-provider-oci-database-tls");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.ocid",
"ocid1.autonomousdatabase.oc1.phx.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");

ds.setConnectionProperties(connectionProps);

try (Connection cn = ds.getConnection()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ public static void main(String[] args) throws SQLException {
connectionProps.put("oracle.jdbc.provider.connectionString.ocid",
"ocid1.autonomousdatabase.oc1.phx.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");

connectionProps.put("oracle.jdbc.provider.tlsConfiguration",
"ojdbc-provider-oci-database-tls");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.ocid",
"ocid1.autonomousdatabase.oc1.phx.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");

ds.setConnectionProperties(connectionProps);

try (Connection cn = ds.getConnection()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ public static void main(String[] args) {
connectionProps.put("oracle.jdbc.provider.password.ocid",
"ocid1.vaultsecret.oc1.phx.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");

// TLS Configuration Provider
connectionProps.put("oracle.jdbc.provider.tlsConfiguration", "ojdbc-provider-oci-database-tls");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.ocid",
"ocid1.autonomousdatabase.oc1.phx.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");

ds.setConnectionProperties(connectionProps);

try (Connection cn = ds.getConnection()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ public static void main(String[] args) {
connectionProps.put("oracle.jdbc.provider.password.ocid",
"ocid1.vaultsecret.oc1.phx.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");

// TLS Configuration Provider
connectionProps.put("oracle.jdbc.provider.tlsConfiguration",
"ojdbc-provider-oci-database-tls");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.ocid",
"ocid1.autonomousdatabase.oc1.phx.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");

// Specify the connection string index
connectionProps.put("oracle.jdbc.provider.username.connectionStringIndex","1");
connectionProps.put("oracle.jdbc.provider.password.connectionStringIndex","1");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ public static void main(String[] args) throws SQLException {
connectionProps.put("oracle.jdbc.provider.password","ojdbc-provider-oci-vault-password");
connectionProps.put("oracle.jdbc.provider.password.ocid",
"ocid1.vaultsecret.oc1.phx.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration", "ojdbc-provider-oci-database-tls");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.ocid",
"ocid1.autonomousdatabase.oc1.phx.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
ds.setConnectionProperties(connectionProps);

try (Connection cn = ds.getConnection()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ public static void main(String[] args) throws SQLException {
connectionProps.put("oracle.jdbc.provider.username","ojdbc-provider-oci-vault-username");
connectionProps.put("oracle.jdbc.provider.username.ocid",
"ocid1.vaultsecret.oc1.phx.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration", "ojdbc-provider-oci-database-tls");
connectionProps.put("oracle.jdbc.provider.tlsConfiguration.ocid",
"ocid1.vaultsecret.oc1.phx.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
ds.setConnectionProperties(connectionProps);

try (Connection cn = ds.getConnection()) {
Expand Down