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