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, 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
Copyright © 2023. All rights reserved.