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) |
getAccessKeyId, getSecretAccessKey, getSecurityToken, useSecurityToken
public InstanceProfileCredentials withExpiredFactor(double expiredFactor)
withExpiredFactor
在类中 BasicCredentials
public InstanceProfileCredentials withExpiredDuration(long expiredDurationSeconds)
withExpiredDuration
在类中 BasicCredentials
public boolean willSoonExpire()
willSoonExpire
在类中 BasicCredentials
public boolean isExpired()
public boolean shouldRefresh()
public void setLastFailedRefreshTime()
Copyright © 2019. All Rights Reserved.