public class InstanceProfileCredentials extends BasicCredentials
accessKeyId, accessKeySecret, expiredDurationSeconds, expiredFactor, securityToken, startedTimeInMilliSeconds| Constructor and Description |
|---|
InstanceProfileCredentials(String accessKeyId,
String accessKeySecret,
String sessionToken,
String expiration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isExpired() |
void |
setLastFailedRefreshTime() |
boolean |
shouldRefresh() |
boolean |
willSoonExpire() |
InstanceProfileCredentials |
withExpiredDuration(long expiredDurationSeconds) |
InstanceProfileCredentials |
withExpiredFactor(double expiredFactor) |
InstanceProfileCredentials |
withRefreshIntervalInMilliseconds(long refreshIntervalInMilliseconds) |
getAccessKeyId, getAccessKeySecret, getSecurityTokenpublic InstanceProfileCredentials withExpiredFactor(double expiredFactor)
withExpiredFactor in class BasicCredentialspublic InstanceProfileCredentials withExpiredDuration(long expiredDurationSeconds)
withExpiredDuration in class BasicCredentialspublic InstanceProfileCredentials withRefreshIntervalInMilliseconds(long refreshIntervalInMilliseconds)
public boolean willSoonExpire()
willSoonExpire in class BasicCredentialspublic boolean isExpired()
public boolean shouldRefresh()
public void setLastFailedRefreshTime()
Copyright © 2024. All Rights Reserved.