|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.baidubce.AbstractBceClient
com.baidubce.services.sts.StsClient
public class StsClient
Provides the client for accessing the Baidu Security Token Service.
| Field Summary |
|---|
| Fields inherited from class com.baidubce.AbstractBceClient |
|---|
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX |
| Constructor Summary | |
|---|---|
StsClient()
Constructs a new Sts client. |
|
StsClient(BceClientConfiguration clientConfiguration)
Constructs a new client using the client configuration. |
|
| Method Summary | |
|---|---|
GetSessionTokenResponse |
getSessionToken()
Get a set of temporary security credentials representing your account, with default request options |
GetSessionTokenResponse |
getSessionToken(GetSessionTokenRequest request)
Get a set of temporary security credentials representing your account |
| Methods inherited from class com.baidubce.AbstractBceClient |
|---|
computeServiceId, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StsClient()
public StsClient(BceClientConfiguration clientConfiguration)
clientConfiguration - The client configuration options controlling how this client
connects to Sts services (e.g. proxy settings, retry counts, etc).| Method Detail |
|---|
public GetSessionTokenResponse getSessionToken()
public GetSessionTokenResponse getSessionToken(GetSessionTokenRequest request)
An extra ACL string can be set in the request, which specify permissions for the returning credentials
request - The object containing options for the request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||