| Constructor and Description |
|---|
StsDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.amazonaws.services.securitytoken.model.Credentials |
getTemporarySecurityCredentials(AwsParamsDto awsParamsDto,
String sessionName,
String awsRoleArn,
int awsRoleDurationSeconds,
com.amazonaws.auth.policy.Policy policy)
Returns a set of temporary security credentials (consisting of an access key ID, a secret access key, and a security token) that can be used to access
the specified AWS resource.
|
public com.amazonaws.services.securitytoken.model.Credentials getTemporarySecurityCredentials(AwsParamsDto awsParamsDto,
String sessionName,
String awsRoleArn,
int awsRoleDurationSeconds,
com.amazonaws.auth.policy.Policy policy)
getTemporarySecurityCredentials in interface StsDaosessionName - the session name that will be associated with the temporary credentials. The session name must be the same for an initial set of
credentials and an extended set of credentials if credentials are to be refreshed. The session name also is used to identify the user in AWS logs so it
should be something unique and useful to identify the caller/use.awsRoleArn - the AWS ARN for the role required to provide access to the specified AWS resourceawsRoleDurationSeconds - the duration, in seconds, of the role session. The value can range from 900 seconds (15 minutes) to 3600 seconds (1 hour).policy - the temporary policy to apply to this requestCopyright © 2021. All rights reserved.