## 类 com.aliyun.oss.common.auth.STSAssumeRoleSessionCredentialsProvider
的使用

- 使用STSAssumeRoleSessionCredentialsProvider的程序包
  程序包 | 说明
  --- | ---
  com.aliyun.oss.common.auth |

- - ### com.aliyun.oss.common.auth中STSAssumeRoleSessionCredentialsProvider的使用

    返回STSAssumeRoleSessionCredentialsProvider的com.aliyun.oss.common.auth中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static STSAssumeRoleSessionCredentialsProvider` | CredentialsProviderFactory.`newSTSAssumeRoleSessionCredentialsProvider(String regionId, String accessKeyId, String accessKeySecret, String roleArn)` Create a new STSAssumeRoleSessionCredentialsProvider, which makes a request to the Aliyun Security Token Service (STS), uses the provided `#roleArn` to assume a role and then request short lived session credentials, which will then be returned by this class's `#getCredentials()` method.
    `STSAssumeRoleSessionCredentialsProvider` | STSAssumeRoleSessionCredentialsProvider.`withExpiredDuration(long expiredDurationSeconds)`
    `STSAssumeRoleSessionCredentialsProvider` | STSAssumeRoleSessionCredentialsProvider.`withExpiredFactor(double expiredFactor)`
    `STSAssumeRoleSessionCredentialsProvider` | STSAssumeRoleSessionCredentialsProvider.`withRoleSessionName(String roleSessionName)`

Copyright © 2020. All Rights Reserved.