blob: f68621e4627b5d8a313b47f7b49df81f77e27491 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.athenz.api;
import java.time.Instant;
/**
* @author mortent
*/
public class AwsTemporaryCredentials {
private final String accessKeyId;
private final String secretAccessKey;
private final String sessionToken;
private final Instant expiration;
public AwsTemporaryCredentials(String accessKeyId, String secretAccessKey, String sessionToken, Instant expiration) {
this.accessKeyId = accessKeyId;
this.secretAccessKey = secretAccessKey;
this.sessionToken = sessionToken;
this.expiration = expiration;
}
public String accessKeyId() {
return accessKeyId;
}
public String secretAccessKey() {
return secretAccessKey;
}
public String sessionToken() {
return sessionToken;
}
public Instant expiration() {
return expiration;
}
}
|