public class InstanceProfileCredentials extends BasicCredentials
accessKeyId, accessKeySecret, expiredDurationSeconds, expiredFactor, securityToken, startedTimeInMilliSeconds| 构造器和说明 |
|---|
InstanceProfileCredentials(String accessKeyId,
String accessKeySecret,
String sessionToken,
String expiration) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 BasicCredentialspublic InstanceProfileCredentials withExpiredDuration(long expiredDurationSeconds)
withExpiredDuration 在类中 BasicCredentialspublic InstanceProfileCredentials withRefreshIntervalInMilliseconds(long refreshIntervalInMilliseconds)
public boolean willSoonExpire()
willSoonExpire 在类中 BasicCredentialspublic boolean isExpired()
public boolean shouldRefresh()
public void setLastFailedRefreshTime()
Copyright © 2025. All Rights Reserved.