public class StsClient extends AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION| Constructor and Description | 
|---|
| StsClient(Credential credential,
         String region) | 
| StsClient(Credential credential,
         String region,
         ClientProfile profile) | 
| Modifier and Type | Method and Description | 
|---|---|
| AssumeRoleResponse | AssumeRole(AssumeRoleRequest req)This API is used to request for the temporary security credentials of a role. | 
| AssumeRoleWithSAMLResponse | AssumeRoleWithSAML(AssumeRoleWithSAMLRequest req)This API is used to request for the temporary credentials for a role that has been authenticated via a SAML assertion. | 
| GetFederationTokenResponse | GetFederationToken(GetFederationTokenRequest req)This API is used to get temporary credentials for a federated user. | 
call, getClientProfile, getCredential, getRegion, internalRequest, setClientProfile, setCredential, setRegionpublic StsClient(Credential credential, String region)
public StsClient(Credential credential, String region, ClientProfile profile)
public AssumeRoleResponse AssumeRole(AssumeRoleRequest req) throws TencentCloudSDKException
req - AssumeRoleRequestTencentCloudSDKExceptionpublic AssumeRoleWithSAMLResponse AssumeRoleWithSAML(AssumeRoleWithSAMLRequest req) throws TencentCloudSDKException
req - AssumeRoleWithSAMLRequestTencentCloudSDKExceptionpublic GetFederationTokenResponse GetFederationToken(GetFederationTokenRequest req) throws TencentCloudSDKException
req - GetFederationTokenRequestTencentCloudSDKExceptionCopyright © 2020. All rights reserved.