public class Authentication extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| Authentication() | 
| Authentication(Authentication 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 | getAuthAlgorithm()Get 鉴权算法,取值有:
md5:按MD5算法取hash值
sha256:按SHA-256算法取hash值
默认为 md5
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getSwitch()Get 防盗链配置开关,取值有:
on:开启
off:关闭
开启时必须且只配置一种模式,其余模式需要设置为 null | 
| AuthenticationTypeA | getTypeA()Get 时间戳防盗链模式 A 配置
注意:此字段可能返回 null,表示取不到有效值。 | 
| AuthenticationTypeB | getTypeB()Get 时间戳防盗链模式 B 配置(模式 B 后台升级中,暂时不支持配置)
注意:此字段可能返回 null,表示取不到有效值。 | 
| AuthenticationTypeC | getTypeC()Get 时间戳防盗链模式 C 配置
注意:此字段可能返回 null,表示取不到有效值。 | 
| AuthenticationTypeD | getTypeD()Get 时间戳防盗链模式 D 配置
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setAuthAlgorithm(String AuthAlgorithm)Set 鉴权算法,取值有:
md5:按MD5算法取hash值
sha256:按SHA-256算法取hash值
默认为 md5
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setSwitch(String Switch)Set 防盗链配置开关,取值有:
on:开启
off:关闭
开启时必须且只配置一种模式,其余模式需要设置为 null | 
| void | setTypeA(AuthenticationTypeA TypeA)Set 时间戳防盗链模式 A 配置
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setTypeB(AuthenticationTypeB TypeB)Set 时间戳防盗链模式 B 配置(模式 B 后台升级中,暂时不支持配置)
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setTypeC(AuthenticationTypeC TypeC)Set 时间戳防盗链模式 C 配置
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setTypeD(AuthenticationTypeD TypeD)Set 时间戳防盗链模式 D 配置
注意:此字段可能返回 null,表示取不到有效值。 | 
| 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 Authentication()
public Authentication(Authentication source)
public String getSwitch()
public void setSwitch(String Switch)
Switch - 防盗链配置开关,取值有:
on:开启
off:关闭
开启时必须且只配置一种模式,其余模式需要设置为 nullpublic String getAuthAlgorithm()
public void setAuthAlgorithm(String AuthAlgorithm)
AuthAlgorithm - 鉴权算法,取值有:
md5:按MD5算法取hash值
sha256:按SHA-256算法取hash值
默认为 md5
注意:此字段可能返回 null,表示取不到有效值。public AuthenticationTypeA getTypeA()
public void setTypeA(AuthenticationTypeA TypeA)
TypeA - 时间戳防盗链模式 A 配置
注意:此字段可能返回 null,表示取不到有效值。public AuthenticationTypeB getTypeB()
public void setTypeB(AuthenticationTypeB TypeB)
TypeB - 时间戳防盗链模式 B 配置(模式 B 后台升级中,暂时不支持配置)
注意:此字段可能返回 null,表示取不到有效值。public AuthenticationTypeC getTypeC()
public void setTypeC(AuthenticationTypeC TypeC)
TypeC - 时间戳防盗链模式 C 配置
注意:此字段可能返回 null,表示取不到有效值。public AuthenticationTypeD getTypeD()
public void setTypeD(AuthenticationTypeD TypeD)
TypeD - 时间戳防盗链模式 D 配置
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2025. All rights reserved.