public class AuthenticationParameters extends AbstractModel
header, skipSign
Constructor and Description |
---|
AuthenticationParameters() |
AuthenticationParameters(AuthenticationParameters 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 |
---|---|
String |
getAuthParam()
Get 鉴权参数名称,节点将校验此参数名对应的值。由 1~100 位大小写字母、数字或下划线组成。
注意:当 AuthType 为 TypeA、TypeD 之一时,此字段必填。 |
String |
getAuthType()
Get 鉴权类型。取值有:
TypeA:鉴权方式 A 类型,具体含义请参考 [鉴权方式 A](https://cloud.tencent.com/document/product/1552/109329);
TypeB:鉴权方式 B 类型,具体含义请参考 [鉴权方式 B](https://cloud.tencent.com/document/product/1552/109330);
TypeC:鉴权方式 C 类型,具体含义请参考 [鉴权方式 C](https://cloud.tencent.com/document/product/1552/109331);
TypeD:鉴权方式 D 类型,具体含义请参考 [鉴权方式 D](https://cloud.tencent.com/document/product/1552/109332);
TypeVOD:鉴权方式 V 类型,具体含义请参考 [鉴权方式 V](https://cloud.tencent.com/document/product/1552/109333)。
|
String |
getBackupSecretKey()
Get 备鉴权密钥,由 6~40 位大小写英文字母或数字组成,不能包含 " 和 $。
|
String |
getSecretKey()
Get 主鉴权密钥,由 6~40 位大小写英文字母或数字组成,不能包含 " 和 $。
|
String |
getTimeFormat()
Get 鉴权时间格式,取值有:
dec:十进制;
hex:十六进制。注意:当 AuthType 为 TypeD 时,此字段必填。默认为 hex。
|
Long |
getTimeout()
Get 鉴权 URL 的有效时长,单位为秒,取值:1~630720000。用于判断客户端访问请求是否过期:
若当前时间超过 “timestamp + 有效时长” 时间,则为过期请求,直接返回 403。
若当前时间未超过 “timestamp + 有效时长” 时间,则请求未过期,继续校验 md5 字符串。注意:当 AuthType 为 TypeA、TypeB、TypeC、TypeD 之一时,此字段必填。
|
String |
getTimeParam()
Get 鉴权时间戳,和 AuthParam 字段的值不能相同。
注意:当 AuthType 为 TypeD 时,此字段必填。 |
void |
setAuthParam(String AuthParam)
Set 鉴权参数名称,节点将校验此参数名对应的值。由 1~100 位大小写字母、数字或下划线组成。
注意:当 AuthType 为 TypeA、TypeD 之一时,此字段必填。 |
void |
setAuthType(String AuthType)
Set 鉴权类型。取值有:
TypeA:鉴权方式 A 类型,具体含义请参考 [鉴权方式 A](https://cloud.tencent.com/document/product/1552/109329);
TypeB:鉴权方式 B 类型,具体含义请参考 [鉴权方式 B](https://cloud.tencent.com/document/product/1552/109330);
TypeC:鉴权方式 C 类型,具体含义请参考 [鉴权方式 C](https://cloud.tencent.com/document/product/1552/109331);
TypeD:鉴权方式 D 类型,具体含义请参考 [鉴权方式 D](https://cloud.tencent.com/document/product/1552/109332);
TypeVOD:鉴权方式 V 类型,具体含义请参考 [鉴权方式 V](https://cloud.tencent.com/document/product/1552/109333)。
|
void |
setBackupSecretKey(String BackupSecretKey)
Set 备鉴权密钥,由 6~40 位大小写英文字母或数字组成,不能包含 " 和 $。
|
void |
setSecretKey(String SecretKey)
Set 主鉴权密钥,由 6~40 位大小写英文字母或数字组成,不能包含 " 和 $。
|
void |
setTimeFormat(String TimeFormat)
Set 鉴权时间格式,取值有:
dec:十进制;
hex:十六进制。注意:当 AuthType 为 TypeD 时,此字段必填。默认为 hex。
|
void |
setTimeout(Long Timeout)
Set 鉴权 URL 的有效时长,单位为秒,取值:1~630720000。用于判断客户端访问请求是否过期:
若当前时间超过 “timestamp + 有效时长” 时间,则为过期请求,直接返回 403。
若当前时间未超过 “timestamp + 有效时长” 时间,则请求未过期,继续校验 md5 字符串。注意:当 AuthType 为 TypeA、TypeB、TypeC、TypeD 之一时,此字段必填。
|
void |
setTimeParam(String TimeParam)
Set 鉴权时间戳,和 AuthParam 字段的值不能相同。
注意:当 AuthType 为 TypeD 时,此字段必填。 |
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, toJsonString
public AuthenticationParameters()
public AuthenticationParameters(AuthenticationParameters source)
public String getAuthType()
public void setAuthType(String AuthType)
AuthType
- 鉴权类型。取值有:
public String getSecretKey()
public void setSecretKey(String SecretKey)
SecretKey
- 主鉴权密钥,由 6~40 位大小写英文字母或数字组成,不能包含 " 和 $。public Long getTimeout()
public void setTimeout(Long Timeout)
Timeout
- 鉴权 URL 的有效时长,单位为秒,取值:1~630720000。用于判断客户端访问请求是否过期:
public String getBackupSecretKey()
public void setBackupSecretKey(String BackupSecretKey)
BackupSecretKey
- 备鉴权密钥,由 6~40 位大小写英文字母或数字组成,不能包含 " 和 $。public String getAuthParam()
public void setAuthParam(String AuthParam)
AuthParam
- 鉴权参数名称,节点将校验此参数名对应的值。由 1~100 位大小写字母、数字或下划线组成。public String getTimeParam()
public void setTimeParam(String TimeParam)
TimeParam
- 鉴权时间戳,和 AuthParam 字段的值不能相同。public String getTimeFormat()
public void setTimeFormat(String TimeFormat)
TimeFormat
- 鉴权时间格式,取值有:
Copyright © 2025. All rights reserved.