Skip to content

Commit

Permalink
restructure HashiCorp package to support dedicated and other types of…
Browse files Browse the repository at this point in the history
… vault
  • Loading branch information
MouhsinElmajdouby committed Dec 25, 2024
1 parent 4d5553d commit 56e27e1
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package oracle.jdbc.provider.hashicorp;
package oracle.jdbc.provider.hashicorp.dedicated;

import oracle.jdbc.provider.factory.Resource;
import oracle.jdbc.provider.factory.ResourceFactory;
import oracle.jdbc.provider.hashicorp.authentication.HashiCredentials;
import oracle.jdbc.provider.hashicorp.authentication.HashicorpCredentialsFactory;
import oracle.jdbc.provider.hashicorp.dedicated.authentication.HashiCredentials;
import oracle.jdbc.provider.hashicorp.dedicated.authentication.HashicorpCredentialsFactory;
import oracle.jdbc.provider.parameter.ParameterSet;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package oracle.jdbc.provider.hashicorp.authentication;
package oracle.jdbc.provider.hashicorp.dedicated.authentication;

/**
* Simple credentials object for HashiCorp Vault that holds a token.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package oracle.jdbc.provider.hashicorp.authentication;
package oracle.jdbc.provider.hashicorp.dedicated.authentication;

/**
* A method of authentication using HashiCorp Vault.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package oracle.jdbc.provider.hashicorp.authentication;
package oracle.jdbc.provider.hashicorp.dedicated.authentication;

import oracle.jdbc.provider.factory.Resource;
import oracle.jdbc.provider.factory.ResourceFactory;
import oracle.jdbc.provider.hashicorp.secrets.HashiVaultSecretsManagerFactory;
import oracle.jdbc.provider.hashicorp.dedicated.secrets.HashiVaultSecretsManagerFactory;
import oracle.jdbc.provider.parameter.Parameter;
import oracle.jdbc.provider.parameter.ParameterSet;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package oracle.jdbc.provider.hashicorp.configuration;
package oracle.jdbc.provider.hashicorp.dedicated.configuration;

import oracle.jdbc.provider.configuration.JsonSecretUtil;
import oracle.jdbc.provider.hashicorp.secrets.HashiVaultSecretsManagerFactory;
import oracle.jdbc.provider.hashicorp.dedicated.secrets.HashiVaultSecretsManagerFactory;
import oracle.jdbc.provider.parameter.ParameterSet;
import oracle.jdbc.spi.OracleConfigurationJsonSecretProvider;
import oracle.sql.json.OracleJsonObject;
Expand All @@ -10,8 +10,8 @@
import java.nio.charset.StandardCharsets;
import java.util.Base64;

import static oracle.jdbc.provider.hashicorp.configuration.HashiVaultSecretsManagerConfigurationProvider.PARAMETER_SET_PARSER;
import static oracle.jdbc.provider.hashicorp.secrets.HashiVaultSecretsManagerFactory.FIELD_NAME;
import static oracle.jdbc.provider.hashicorp.dedicated.configuration.HashiVaultSecretsManagerConfigurationProvider.PARAMETER_SET_PARSER;
import static oracle.jdbc.provider.hashicorp.dedicated.secrets.HashiVaultSecretsManagerFactory.FIELD_NAME;

public class HashiJsonVaultProvider implements OracleConfigurationJsonSecretProvider {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package oracle.jdbc.provider.hashicorp.configuration;
package oracle.jdbc.provider.hashicorp.dedicated.configuration;

import oracle.jdbc.driver.OracleConfigurationJsonProvider;
import oracle.jdbc.provider.hashicorp.secrets.HashiVaultSecretsManagerFactory;
import oracle.jdbc.provider.hashicorp.dedicated.secrets.HashiVaultSecretsManagerFactory;
import oracle.jdbc.provider.parameter.ParameterSet;
import oracle.jdbc.provider.parameter.ParameterSetParser;
import oracle.jdbc.util.OracleConfigurationCache;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package oracle.jdbc.provider.hashicorp.configuration;
package oracle.jdbc.provider.hashicorp.dedicated.configuration;

import oracle.jdbc.provider.hashicorp.authentication.HashicorpAuthenticationMethod;
import oracle.jdbc.provider.hashicorp.authentication.HashicorpCredentialsFactory;
import oracle.jdbc.provider.hashicorp.dedicated.authentication.HashicorpAuthenticationMethod;
import oracle.jdbc.provider.hashicorp.dedicated.authentication.HashicorpCredentialsFactory;
import oracle.jdbc.provider.parameter.ParameterSetParser;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package oracle.jdbc.provider.hashicorp.secrets;
package oracle.jdbc.provider.hashicorp.dedicated.secrets;

import oracle.jdbc.provider.cache.CachedResourceFactory;
import oracle.jdbc.provider.factory.Resource;
import oracle.jdbc.provider.factory.ResourceFactory;
import oracle.jdbc.provider.hashicorp.HashiVaultResourceFactory;
import oracle.jdbc.provider.hashicorp.authentication.HashiCredentials;
import oracle.jdbc.provider.hashicorp.dedicated.HashiVaultResourceFactory;
import oracle.jdbc.provider.hashicorp.dedicated.authentication.HashiCredentials;
import oracle.jdbc.provider.parameter.Parameter;
import oracle.jdbc.provider.parameter.ParameterSet;
import oracle.sql.json.OracleJsonFactory;
Expand Down

0 comments on commit 56e27e1

Please sign in to comment.