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