Package cn.ucloud.sts.client
Class STSClient
- java.lang.Object
-
- cn.ucloud.common.client.DefaultClient
-
- cn.ucloud.sts.client.STSClient
-
- All Implemented Interfaces:
Client,STSClientInterface,Closeable,AutoCloseable
public class STSClient extends DefaultClient implements STSClientInterface
This client is used to call actions of **STS** service
-
-
Constructor Summary
Constructors Constructor Description STSClient(Config config, Credential credential)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssumeRoleResponseassumeRole(AssumeRoleRequest request)AssumeRole - 获取扮演角色的临时身份凭证-
Methods inherited from class cn.ucloud.common.client.DefaultClient
close, getConfig, getCredential, getTransport, invoke, setConfig, setCredential, setTransport, useMiddleware
-
-
-
-
Constructor Detail
-
STSClient
public STSClient(Config config, Credential credential)
-
-
Method Detail
-
assumeRole
public AssumeRoleResponse assumeRole(AssumeRoleRequest request) throws UCloudException
AssumeRole - 获取扮演角色的临时身份凭证- Specified by:
assumeRolein interfaceSTSClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
-