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