Skip to content

Commit

Permalink
better auth
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaddel committed Nov 17, 2013
1 parent 6888d4c commit 03caf32
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -18,6 +18,10 @@ public ImmutableAwsCredentials(String accessKey, String secretKey) {
this(accessKey, secretKey, Optional.<String> absent());
}

public ImmutableAwsCredentials(String accessKey, String secretKey, String sessionToken) {
this(accessKey, secretKey, Optional.of(sessionToken));
}

public ImmutableAwsCredentials(String accessKey, String secretKey, Optional<String> sessionToken) {
Assert.noBlanks(accessKey, secretKey);
Assert.noNulls(sessionToken);
Expand Down

0 comments on commit 03caf32

Please sign in to comment.