From 9835df71fd98955292ad62e8e2acbc397f0aa0e9 Mon Sep 17 00:00:00 2001 From: aeitzman Date: Mon, 22 Jan 2024 09:43:29 -0800 Subject: [PATCH] lint --- .../java/com/google/auth/oauth2/AwsRequestSigner.java | 3 ++- .../java/com/google/auth/oauth2/AwsSecurityCredentials.java | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/oauth2_http/java/com/google/auth/oauth2/AwsRequestSigner.java b/oauth2_http/java/com/google/auth/oauth2/AwsRequestSigner.java index baf855124..275c15105 100644 --- a/oauth2_http/java/com/google/auth/oauth2/AwsRequestSigner.java +++ b/oauth2_http/java/com/google/auth/oauth2/AwsRequestSigner.java @@ -237,7 +237,8 @@ private Map getCanonicalHeaders(String defaultDate) { headers.put("x-amz-date", defaultDate); } - if (awsSecurityCredentials.getSessionToken() != null && !awsSecurityCredentials.getSessionToken().isEmpty()) { + if (awsSecurityCredentials.getSessionToken() != null + && !awsSecurityCredentials.getSessionToken().isEmpty()) { headers.put("x-amz-security-token", awsSecurityCredentials.getSessionToken()); } diff --git a/oauth2_http/java/com/google/auth/oauth2/AwsSecurityCredentials.java b/oauth2_http/java/com/google/auth/oauth2/AwsSecurityCredentials.java index ddbaf338f..7101dda3e 100644 --- a/oauth2_http/java/com/google/auth/oauth2/AwsSecurityCredentials.java +++ b/oauth2_http/java/com/google/auth/oauth2/AwsSecurityCredentials.java @@ -51,7 +51,8 @@ public class AwsSecurityCredentials { * @param secretAccessKey the AWS secret access key. * @param sessionToken the AWS session token. Optional. */ - public AwsSecurityCredentials(String accessKeyId, String secretAccessKey, @Nullable String sessionToken) { + public AwsSecurityCredentials( + String accessKeyId, String secretAccessKey, @Nullable String sessionToken) { this.accessKeyId = accessKeyId; this.secretAccessKey = secretAccessKey; this.sessionToken = sessionToken; @@ -59,6 +60,7 @@ public AwsSecurityCredentials(String accessKeyId, String secretAccessKey, @Nulla /** * Gets the AWS access key id. + * * @return the AWS access key id. */ public String getAccessKeyId() { @@ -67,6 +69,7 @@ public String getAccessKeyId() { /** * Gets the AWS secret access key. + * * @return the AWS secret access key. */ public String getSecretAccessKey() { @@ -75,6 +78,7 @@ public String getSecretAccessKey() { /** * Gets the AWS session token. + * * @return the AWS session token. */ @Nullable