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 断言申请角色临时凭证。
|
GetFederationTokenResponse |
GetFederationToken(GetFederationTokenRequest req)
获取联合身份临时访问凭证
|
QueryApiKeyResponse |
QueryApiKey(QueryApiKeyRequest req)
拉取API密钥列表
|
call, getClientProfile, getCredential, getRegion, internalRequest, setClientProfile, setCredential, setRegion
public StsClient(Credential credential, String region)
public StsClient(Credential credential, String region, ClientProfile profile)
public AssumeRoleResponse AssumeRole(AssumeRoleRequest req) throws TencentCloudSDKException
req
- AssumeRoleRequestTencentCloudSDKException
public AssumeRoleWithSAMLResponse AssumeRoleWithSAML(AssumeRoleWithSAMLRequest req) throws TencentCloudSDKException
req
- AssumeRoleWithSAMLRequestTencentCloudSDKException
public GetFederationTokenResponse GetFederationToken(GetFederationTokenRequest req) throws TencentCloudSDKException
req
- GetFederationTokenRequestTencentCloudSDKException
public QueryApiKeyResponse QueryApiKey(QueryApiKeyRequest req) throws TencentCloudSDKException
req
- QueryApiKeyRequestTencentCloudSDKException
Copyright © 2020. All rights reserved.