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)
申请扮演角色
|
AssumeRoleWithSAMLResponse |
AssumeRoleWithSAML(AssumeRoleWithSAMLRequest req)
本接口(AssumeRoleWithSAML)用于根据 SAML 断言申请角色临时凭证。
|
AssumeRoleWithWebIdentityResponse |
AssumeRoleWithWebIdentity(AssumeRoleWithWebIdentityRequest req)
申请OIDC角色临时密钥
|
GetCallerIdentityResponse |
GetCallerIdentity(GetCallerIdentityRequest req)
获取当前调用者的身份信息。
接口支持主账号,子账号长期密钥以及AssumeRole,GetFederationToken生成的临时凭据的身份获取。
|
GetFederationTokenResponse |
GetFederationToken(GetFederationTokenRequest req)
获取联合身份临时访问凭证
|
QueryApiKeyResponse |
QueryApiKey(QueryApiKeyRequest req)
拉取API密钥列表
|
call, callOctetStream, getClientProfile, getCredential, getRegion, internalRequest, retry, 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 - GetFederationTokenRequestTencentCloudSDKExceptionpublic QueryApiKeyResponse QueryApiKey(QueryApiKeyRequest req) throws TencentCloudSDKException
req - QueryApiKeyRequestTencentCloudSDKExceptionCopyright © 2023. All rights reserved.