Package | Description |
---|---|
com.amazonaws.auth |
Modifier and Type | Method and Description |
---|---|
STSAssumeRoleSessionCredentialsProvider.Builder |
STSAssumeRoleSessionCredentialsProvider.Builder.withClientConfiguration(ClientConfiguration clientConfiguration)
Set the client configuration used to create the AWSSecurityTokenService
|
STSAssumeRoleSessionCredentialsProvider.Builder |
STSAssumeRoleSessionCredentialsProvider.Builder.withExternalId(java.lang.String roleExternalId)
Set the roleExternalId parameter that is used when retrieving session credentials under
an assumed role.
|
STSAssumeRoleSessionCredentialsProvider.Builder |
STSAssumeRoleSessionCredentialsProvider.Builder.withLongLivedCredentials(AWSCredentials longLivedCredentials)
Set credentials to use when retrieving session credentials This is not the recommended
approach.
|
STSAssumeRoleSessionCredentialsProvider.Builder |
STSAssumeRoleSessionCredentialsProvider.Builder.withLongLivedCredentialsProvider(AWSCredentialsProvider longLivedCredentialsProvider)
Set credentials provider to use when retrieving session credentials
|
STSAssumeRoleSessionCredentialsProvider.Builder |
STSAssumeRoleSessionCredentialsProvider.Builder.withRoleSessionDurationSeconds(int roleSessionDurationSeconds)
Set the roleSessionDurationSeconds that is used when creating a new assumed role
session.
|
STSAssumeRoleSessionCredentialsProvider.Builder |
STSAssumeRoleSessionCredentialsProvider.Builder.withServiceEndpoint(java.lang.String serviceEndpoint)
Sets the AWS Security Token Service (STS) endpoint where session credentials are
retrieved from.
|
STSAssumeRoleSessionCredentialsProvider.Builder |
STSAssumeRoleSessionCredentialsProvider.Builder.withStsClient(AWSSecurityTokenService sts)
Sets a preconfigured STS client to use for the credentials provider.
|
Modifier and Type | Method and Description |
---|---|
private static AWSSecurityTokenService |
STSAssumeRoleSessionCredentialsProvider.buildStsClient(STSAssumeRoleSessionCredentialsProvider.Builder builder)
Construct a new STS client from the settings in the builder.
|
Constructor and Description |
---|
STSAssumeRoleSessionCredentialsProvider(STSAssumeRoleSessionCredentialsProvider.Builder builder)
The following private constructor reads state from the builder and sets the appropriate
parameters accordingly
When public constructors are called, this constructors is deferred to with a null value for
roleExternalId and endpoint The inner Builder class can be used to construct an object that
actually has a value for roleExternalId and endpoint
|