Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
aeitzman committed Jan 22, 2024
1 parent abd462b commit 9835df7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ private Map<String, String> 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());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,16 @@ 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;
}

/**
* Gets the AWS access key id.
*
* @return the AWS access key id.
*/
public String getAccessKeyId() {
Expand All @@ -67,6 +69,7 @@ public String getAccessKeyId() {

/**
* Gets the AWS secret access key.
*
* @return the AWS secret access key.
*/
public String getSecretAccessKey() {
Expand All @@ -75,6 +78,7 @@ public String getSecretAccessKey() {

/**
* Gets the AWS session token.
*
* @return the AWS session token.
*/
@Nullable
Expand Down

0 comments on commit 9835df7

Please sign in to comment.