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)使用说明**
1. | 
| AssumeRoleWithSAMLResponse | AssumeRoleWithSAML(AssumeRoleWithSAMLRequest req)本接口(AssumeRoleWithSAML)用于根据 SAML 断言申请角色临时访问凭证。
注意:当使用签名方法 V3 调用本接口时,请求头无须传入 X-TC-Token, 但 Authorization 需要传入值 SKIP。 | 
| AssumeRoleWithWebIdentityResponse | AssumeRoleWithWebIdentity(AssumeRoleWithWebIdentityRequest req)申请OIDC角色临时访问凭证。
注意:当使用签名方法 V3 调用本接口时,请求头无须传入 X-TC-Token, 但 Authorization 需要传入值 SKIP。 | 
| GetCallerIdentityResponse | GetCallerIdentity(GetCallerIdentityRequest req)获取当前调用者的身份信息。
接口支持主账号,子账号长期密钥以及AssumeRole,GetFederationToken生成的临时访问凭证身份获取。 | 
| GetFederationTokenResponse | GetFederationToken(GetFederationTokenRequest req)使用说明**
1. | 
| GetSessionTokenResponse | GetSessionToken(GetSessionTokenRequest req)获取MFA临时证书 | 
| QueryApiKeyResponse | QueryApiKey(QueryApiKeyRequest req)拉取API密钥列表 | 
call, callOctetStream, getClientProfile, getCredential, getRegion, getRegionBreaker, internalRequest, internalRequest, internalRequestRaw, processResponseJson, processResponseSSE, retry, setClientProfile, setCredential, setRegion, setRegionBreakerpublic 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 - GetFederationTokenRequestTencentCloudSDKExceptionpublic GetSessionTokenResponse GetSessionToken(GetSessionTokenRequest req) throws TencentCloudSDKException
req - GetSessionTokenRequestTencentCloudSDKExceptionpublic QueryApiKeyResponse QueryApiKey(QueryApiKeyRequest req) throws TencentCloudSDKException
req - QueryApiKeyRequestTencentCloudSDKExceptionCopyright © 2025. All rights reserved.