public class STSAssumeRoleSessionCredentialsProvider extends Object implements CredentialsProvider
| Constructor and Description |
|---|
STSAssumeRoleSessionCredentialsProvider(com.aliyuncs.auth.AlibabaCloudCredentialsProvider longLivedCredentialsProvider,
String roleArn,
com.aliyuncs.profile.IClientProfile clientProfile) |
STSAssumeRoleSessionCredentialsProvider(com.aliyuncs.auth.AlibabaCloudCredentials longLivedCredentials,
String roleArn,
com.aliyuncs.profile.IClientProfile clientProfile) |
| Modifier and Type | Method and Description |
|---|---|
Credentials |
getCredentials() |
static String |
getNewRoleSessionName() |
void |
setCredentials(Credentials creds) |
STSAssumeRoleSessionCredentialsProvider |
withExpiredDuration(long expiredDurationSeconds) |
STSAssumeRoleSessionCredentialsProvider |
withExpiredFactor(double expiredFactor) |
STSAssumeRoleSessionCredentialsProvider |
withRoleSessionName(String roleSessionName) |
public STSAssumeRoleSessionCredentialsProvider(com.aliyuncs.auth.AlibabaCloudCredentials longLivedCredentials,
String roleArn,
com.aliyuncs.profile.IClientProfile clientProfile)
public STSAssumeRoleSessionCredentialsProvider(com.aliyuncs.auth.AlibabaCloudCredentialsProvider longLivedCredentialsProvider,
String roleArn,
com.aliyuncs.profile.IClientProfile clientProfile)
public STSAssumeRoleSessionCredentialsProvider withRoleSessionName(String roleSessionName)
public STSAssumeRoleSessionCredentialsProvider withExpiredFactor(double expiredFactor)
public STSAssumeRoleSessionCredentialsProvider withExpiredDuration(long expiredDurationSeconds)
public static String getNewRoleSessionName()
public void setCredentials(Credentials creds)
setCredentials in interface CredentialsProviderpublic Credentials getCredentials()
getCredentials in interface CredentialsProviderCopyright © 2021. All Rights Reserved.