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) |
getAccessKeyId, getSecretAccessKey, getSecurityToken, useSecurityTokenpublic InstanceProfileCredentials withExpiredFactor(double expiredFactor)
withExpiredFactor in class BasicCredentialspublic InstanceProfileCredentials withExpiredDuration(long expiredDurationSeconds)
withExpiredDuration in class BasicCredentialspublic boolean willSoonExpire()
willSoonExpire in class BasicCredentialspublic boolean isExpired()
public boolean shouldRefresh()
public void setLastFailedRefreshTime()
Copyright © 2021. All Rights Reserved.