@Immutable public class ProfileAssumeRoleCredentialsProvider extends Object implements AWSCredentialsProvider
BasicProfile. If a profile defines the
role_arn property then the profile is treated as an assume role profile. Does basic validation
that the role exists and the source (long lived) credentials are valid.| Constructor and Description |
|---|
ProfileAssumeRoleCredentialsProvider(ProfileCredentialsService profileCredentialsService,
AllProfiles allProfiles,
BasicProfile profile) |
| Modifier and Type | Method and Description |
|---|---|
AWSCredentials |
getCredentials()
Returns AWSCredentials which the caller can use to authorize an AWS request.
|
void |
refresh()
Forces this credentials provider to refresh its credentials.
|
public ProfileAssumeRoleCredentialsProvider(ProfileCredentialsService profileCredentialsService, AllProfiles allProfiles, BasicProfile profile)
public AWSCredentials getCredentials()
AWSCredentialsProvidergetCredentials in interface AWSCredentialsProviderpublic void refresh()
AWSCredentialsProviderrefresh in interface AWSCredentialsProvider