public class STSAssumeRoleSessionCredentialsProvider extends Object implements AlibabaCloudCredentialsProvider
| 限定符和类型 | 字段和说明 |
|---|---|
long |
assumeRoleRound
For test
To know how many rounds AssumeRole has been called
|
static int |
DEFAULT_DURATION_SECONDS
Default duration for started sessions.
|
| 构造器和说明 |
|---|
STSAssumeRoleSessionCredentialsProvider(AlibabaCloudCredentialsProvider longLivedCredentialsProvider,
String roleArn,
IClientProfile clientProfile) |
STSAssumeRoleSessionCredentialsProvider(AlibabaCloudCredentials longLivedCredentials,
String roleArn,
IClientProfile clientProfile) |
| 限定符和类型 | 方法和说明 |
|---|---|
AlibabaCloudCredentials |
getCredentials() |
static String |
getNewRoleSessionName() |
STSAssumeRoleSessionCredentialsProvider |
withRoleSessionDurationSeconds(long roleSessionDurationSeconds) |
STSAssumeRoleSessionCredentialsProvider |
withRoleSessionName(String roleSessionName) |
STSAssumeRoleSessionCredentialsProvider |
withSTSClient(IAcsClient client) |
public static final int DEFAULT_DURATION_SECONDS
public long assumeRoleRound
public STSAssumeRoleSessionCredentialsProvider(AlibabaCloudCredentials longLivedCredentials, String roleArn, IClientProfile clientProfile)
public STSAssumeRoleSessionCredentialsProvider(AlibabaCloudCredentialsProvider longLivedCredentialsProvider, String roleArn, IClientProfile clientProfile)
public STSAssumeRoleSessionCredentialsProvider withRoleSessionName(String roleSessionName)
public STSAssumeRoleSessionCredentialsProvider withRoleSessionDurationSeconds(long roleSessionDurationSeconds)
public STSAssumeRoleSessionCredentialsProvider withSTSClient(IAcsClient client)
public static String getNewRoleSessionName()
public AlibabaCloudCredentials getCredentials() throws ClientException, ServerException
getCredentials 在接口中 AlibabaCloudCredentialsProviderClientExceptionServerExceptionCopyright © 2018. All Rights Reserved.