Skip to content

Commit

Permalink
SET-559 minor capitalization of variable
Browse files Browse the repository at this point in the history
  • Loading branch information
john-sobrepena-partior committed Aug 27, 2024
1 parent 94e6edc commit c1e1dfb
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <R> R create(
Function<Config, KeyVaultConfig> keyVaultConfigProvider,
BiFunction<VaultOperations, KeyVaultConfig, R> keyVaultServiceProvider,
String envVarHashicorpRoleId,
String envVarhasHicorpSecretId,
String envVarHashicorpSecretId,
String envVarHashicorpToken) {

Objects.requireNonNull(config);
Expand All @@ -64,15 +64,15 @@ <R> R create(
Objects.requireNonNull(keyVaultServiceProvider);

final String roleId = envProvider.getEnv(envVarHashicorpRoleId);
final String secretId = envProvider.getEnv(envVarhasHicorpSecretId);
final String secretId = envProvider.getEnv(envVarHashicorpSecretId);
final String authToken = envProvider.getEnv(envVarHashicorpToken);

if (roleId == null && secretId == null && authToken == null) {
throw new HashicorpCredentialNotSetException(
"Environment variables must be set to authenticate with Hashicorp Vault. Set the "
+ envVarHashicorpRoleId
+ " and "
+ envVarhasHicorpSecretId
+ envVarHashicorpSecretId
+ " environment variables if using the AppRole authentication method. Set the "
+ envVarHashicorpToken
+ " environment variable if using another authentication method.");
Expand All @@ -81,7 +81,7 @@ <R> R create(
"Only one of the "
+ envVarHashicorpRoleId
+ " and "
+ envVarhasHicorpSecretId
+ envVarHashicorpSecretId
+ " environment variables to authenticate with Hashicorp Vault using the AppRole method has been set");
}

Expand Down Expand Up @@ -112,7 +112,7 @@ <R> R create(
clientHttpRequestFactory,
vaultEndpoint,
envVarHashicorpRoleId,
envVarhasHicorpSecretId,
envVarHashicorpSecretId,
envVarHashicorpToken);

SessionManager sessionManager = new SimpleSessionManager(clientAuthentication);
Expand Down

0 comments on commit c1e1dfb

Please sign in to comment.