public class RamRoleArnCredentialsProvider extends Object implements ICredentialsProvider
| 构造器和说明 |
|---|
RamRoleArnCredentialsProvider(String accessKeyId,
String accessKeySecret,
String roleArn,
String roleSessionName) |
RamRoleArnCredentialsProvider(String accessKeyId,
String accessKeySecret,
String roleArn,
String roleSessionName,
String policy) |
| 限定符和类型 | 方法和说明 |
|---|---|
Integer |
getConnectTimeout() |
ICredentials |
getCredentials() |
BasicSessionCredentials |
getNewSessionCredential(CompatibleUrlConnClient client) |
Integer |
getReadTimeout() |
void |
setConnectTimeout(Integer connectTimeout) |
void |
setReadTimeout(Integer readTimeout) |
public RamRoleArnCredentialsProvider(String accessKeyId, String accessKeySecret, String roleArn, String roleSessionName)
public ICredentials getCredentials() throws Exception
getCredentials 在接口中 ICredentialsProviderExceptionpublic BasicSessionCredentials getNewSessionCredential(CompatibleUrlConnClient client) throws Exception
Exceptionpublic Integer getConnectTimeout()
public void setConnectTimeout(Integer connectTimeout)
public Integer getReadTimeout()
public void setReadTimeout(Integer readTimeout)
Copyright © 2023. All rights reserved.