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, 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 AssumeRoleWithWebIdentityResponse AssumeRoleWithWebIdentity(AssumeRoleWithWebIdentityRequest req) throws TencentCloudSDKException
req
- AssumeRoleWithWebIdentityRequestTencentCloudSDKException
public GetCallerIdentityResponse GetCallerIdentity(GetCallerIdentityRequest req) throws TencentCloudSDKException
req
- GetCallerIdentityRequestTencentCloudSDKException
public GetFederationTokenResponse GetFederationToken(GetFederationTokenRequest req) throws TencentCloudSDKException
req
- GetFederationTokenRequestTencentCloudSDKException
public QueryApiKeyResponse QueryApiKey(QueryApiKeyRequest req) throws TencentCloudSDKException
req
- QueryApiKeyRequestTencentCloudSDKException
Copyright © 2022. All rights reserved.