Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
Align constant names.

See gh-667
  • Loading branch information
mp911de committed Jan 31, 2023
1 parent a600842 commit c8f2168
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@
*/
class ClientAuthenticationFactory {

private static final boolean GOOGLE_CREDENTIAL_PRESENT = ClassUtils.isPresent(
private static final boolean googleCredentialPresent = ClassUtils.isPresent(
"com.google.api.client.googleapis.auth.oauth2.GoogleCredential",
ClientAuthenticationFactory.class.getClassLoader());

private static final boolean GOOGLE_CREDENTIALS_PRESENT = ClassUtils
private static final boolean googleCredentialsPresent = ClassUtils
.isPresent("com.google.auth.oauth2.GoogleCredentials", ClientAuthenticationFactory.class.getClassLoader());

private final VaultProperties vaultProperties;
Expand Down Expand Up @@ -347,11 +347,11 @@ private ClientAuthentication gcpGceAuthentication(VaultProperties vaultPropertie

private ClientAuthentication gcpIamAuthentication(VaultProperties vaultProperties) {

if (GOOGLE_CREDENTIAL_PRESENT) {
if (googleCredentialPresent) {
return GcpIamAuthenticationFactory.create(vaultProperties, this.restOperations);
}

if (GOOGLE_CREDENTIALS_PRESENT) {
if (googleCredentialsPresent) {
return GcpIamCredentialsAuthenticationFactory.create(vaultProperties, this.restOperations);
}

Expand Down

0 comments on commit c8f2168

Please sign in to comment.