public class GetFederationTokenRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| GetFederationTokenRequest() | 
| GetFederationTokenRequest(GetFederationTokenRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| Long | getDurationSeconds()Get 指定临时证书的有效期,单位:秒,默认1800秒,主账号最长可设定有效期为7200秒,子账号最长可设定有效期为129600秒。 | 
| String | getName()Get 您可以自定义调用方英文名称,由字母组成。 | 
| String | getPolicy()Get 注意:
1、策略语法参照[ CAM 策略语法](https://cloud.tencent.com/document/product/598/10603)。
2、策略中不能包含 principal 元素。
3、该参数需要做urlencode,服务端会对该字段做urldecode, 并按处理后Policy授予临时访问凭证权限,请按规范传入参数。 | 
| void | setDurationSeconds(Long DurationSeconds)Set 指定临时证书的有效期,单位:秒,默认1800秒,主账号最长可设定有效期为7200秒,子账号最长可设定有效期为129600秒。 | 
| void | setName(String Name)Set 您可以自定义调用方英文名称,由字母组成。 | 
| void | setPolicy(String Policy)Set 注意:
1、策略语法参照[ CAM 策略语法](https://cloud.tencent.com/document/product/598/10603)。
2、策略中不能包含 principal 元素。
3、该参数需要做urlencode,服务端会对该字段做urldecode, 并按处理后Policy授予临时访问凭证权限,请按规范传入参数。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic GetFederationTokenRequest()
public GetFederationTokenRequest(GetFederationTokenRequest source)
public String getName()
public void setName(String Name)
Name - 您可以自定义调用方英文名称,由字母组成。public String getPolicy()
public void setPolicy(String Policy)
Policy - 注意:
1、策略语法参照[ CAM 策略语法](https://cloud.tencent.com/document/product/598/10603)。
2、策略中不能包含 principal 元素。
3、该参数需要做urlencode,服务端会对该字段做urldecode, 并按处理后Policy授予临时访问凭证权限,请按规范传入参数。public Long getDurationSeconds()
public void setDurationSeconds(Long DurationSeconds)
DurationSeconds - 指定临时证书的有效期,单位:秒,默认1800秒,主账号最长可设定有效期为7200秒,子账号最长可设定有效期为129600秒。Copyright © 2025. All rights reserved.