@ThreadSafe public class STSAssumeRoleSessionCredentialsProvider extends Object implements AWSSessionCredentialsProvider
| Modifier and Type | Class and Description | 
|---|---|
| static class  | STSAssumeRoleSessionCredentialsProvider.BuilderProvides a builder pattern to avoid combinatorial explosion of the number of parameters that
 are passed to constructors. | 
| Modifier and Type | Field and Description | 
|---|---|
| static int | DEFAULT_DURATION_SECONDSDefault duration for started sessions. | 
| Modifier and Type | Method and Description | 
|---|---|
| AWSSessionCredentials | getCredentials() | 
| void | refresh() | 
| void | setSTSClientEndpoint(String endpoint)Deprecated. 
 This method may be removed in a future major version. Create multiple providers
 if you need to work with multiple STS endpoints. | 
public static final int DEFAULT_DURATION_SECONDS
@Deprecated public STSAssumeRoleSessionCredentialsProvider(String roleArn, String roleSessionName)
STSAssumeRoleSessionCredentialsProvider.Builder instead.roleArn to assume a role and then
 request short lived session credentials, which will then be returned by this class's getCredentials() method.roleArn - The ARN of the Role to be assumed.roleSessionName - An identifier for the assumed role session.@Deprecated public STSAssumeRoleSessionCredentialsProvider(AWSCredentials longLivedCredentials, String roleArn, String roleSessionName)
STSAssumeRoleSessionCredentialsProvider.Builder instead.roleArn to assume a role and then request short lived session credentials,
 which will then be returned by this class's getCredentials() method.longLivedCredentials - The main AWS credentials for a user's account.roleArn - The ARN of the Role to be assumed.roleSessionName - An identifier for the assumed role session.@Deprecated public STSAssumeRoleSessionCredentialsProvider(AWSCredentials longLivedCredentials, String roleArn, String roleSessionName, ClientConfiguration clientConfiguration)
STSAssumeRoleSessionCredentialsProvider.Builder instead.roleArn to assume a role and then request short lived session credentials,
 which will then be returned by this class's getCredentials() method.longLivedCredentials - The main AWS credentials for a user's account.roleArn - The ARN of the Role to be assumed.roleSessionName - An identifier for the assumed role session.clientConfiguration - Client configuration connection parameters.@Deprecated public STSAssumeRoleSessionCredentialsProvider(AWSCredentialsProvider longLivedCredentialsProvider, String roleArn, String roleSessionName)
STSAssumeRoleSessionCredentialsProvider.Builder instead.roleArn to assume a role and then
 request short lived session credentials, which will then be returned by this class's getCredentials() method.longLivedCredentialsProvider - Credentials provider for the main AWS credentials for a
                                     user's account.roleArn - The ARN of the Role to be assumed.roleSessionName - An identifier for the assumed role session.@Deprecated public STSAssumeRoleSessionCredentialsProvider(AWSCredentialsProvider longLivedCredentialsProvider, String roleArn, String roleSessionName, ClientConfiguration clientConfiguration)
STSAssumeRoleSessionCredentialsProvider.Builder instead.roleArn to assume a role and then
 request short lived session credentials, which will then be returned by this class's getCredentials() method.longLivedCredentialsProvider - Credentials provider for the main AWS credentials for a
                                     user's account.roleArn - The ARN of the Role to be assumed.roleSessionName - An identifier for the assumed role session.clientConfiguration - Client configuration connection parameters.@Deprecated public void setSTSClientEndpoint(String endpoint)
public AWSSessionCredentials getCredentials()
getCredentials in interface AWSCredentialsProvidergetCredentials in interface AWSSessionCredentialsProviderpublic void refresh()
refresh in interface AWSCredentialsProviderCopyright © 2017. All rights reserved.