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. | 
| AssumeRoleWithWebIdentityResponse | AssumeRoleWithWebIdentity(AssumeRoleWithWebIdentityRequest req)This API is used to apply for an OIDC role credential. | 
| GetCallerIdentityResponse | GetCallerIdentity(GetCallerIdentityRequest req)This API is used to get the identity information of the current caller. | 
| 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 AssumeRoleWithWebIdentityResponse AssumeRoleWithWebIdentity(AssumeRoleWithWebIdentityRequest req) throws TencentCloudSDKException
req - AssumeRoleWithWebIdentityRequestTencentCloudSDKExceptionpublic GetCallerIdentityResponse GetCallerIdentity(GetCallerIdentityRequest req) throws TencentCloudSDKException
req - GetCallerIdentityRequestTencentCloudSDKExceptionpublic GetFederationTokenResponse GetFederationToken(GetFederationTokenRequest req) throws TencentCloudSDKException
req - GetFederationTokenRequestTencentCloudSDKExceptionCopyright © 2022. All rights reserved.