public class ECSMetadataServiceCredentialsFetcher extends Object
| 构造器和说明 |
|---|
ECSMetadataServiceCredentialsFetcher() |
| 限定符和类型 | 方法和说明 |
|---|---|
EcsRamRoleCredentials |
fetch() |
EcsRamRoleCredentials |
fetch(int retryTimes) |
String |
getMetadata() |
void |
setRoleName(String roleName) |
ECSMetadataServiceCredentialsFetcher |
withConnectionTimeout(int milliseconds) |
ECSMetadataServiceCredentialsFetcher |
withECSMetadataServiceHost(String host) |
public void setRoleName(String roleName)
public ECSMetadataServiceCredentialsFetcher withECSMetadataServiceHost(String host)
public ECSMetadataServiceCredentialsFetcher withConnectionTimeout(int milliseconds)
public String getMetadata() throws CredentialException
public EcsRamRoleCredentials fetch() throws CredentialException
public EcsRamRoleCredentials fetch(int retryTimes) throws CredentialException
Copyright © 2021. All rights reserved.