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 Authentication algorithm.
|
String |
getSwitch()
Get Whether to enable hot linking protection.
|
AuthenticationTypeA |
getTypeA()
Get Timestamp hotlink protection mode A configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
|
AuthenticationTypeB |
getTypeB()
Get Timestamp hotlink protection mode B configuration (mode B is being upgraded and is currently not supported)
Note: This field may return `null`, indicating that no valid value can be obtained.
|
AuthenticationTypeC |
getTypeC()
Get Timestamp hotlink protection mode C configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
|
AuthenticationTypeD |
getTypeD()
Get Timestamp hotlink protection mode D configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
|
void |
setAuthAlgorithm(String AuthAlgorithm)
Set Authentication algorithm.
|
void |
setSwitch(String Switch)
Set Whether to enable hot linking protection.
|
void |
setTypeA(AuthenticationTypeA TypeA)
Set Timestamp hotlink protection mode A configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
|
void |
setTypeB(AuthenticationTypeB TypeB)
Set Timestamp hotlink protection mode B configuration (mode B is being upgraded and is currently not supported)
Note: This field may return `null`, indicating that no valid value can be obtained.
|
void |
setTypeC(AuthenticationTypeC TypeC)
Set Timestamp hotlink protection mode C configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
|
void |
setTypeD(AuthenticationTypeD TypeD)
Set Timestamp hotlink protection mode D configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public Authentication()
public Authentication(Authentication source)
public String getSwitch()
public void setSwitch(String Switch)
Switch
- Whether to enable hot linking protection. Values:
`on`: Enable
`off`: Disable
Only one advanced configuration can be enabled. Set the rests to `null`.public String getAuthAlgorithm()
public void setAuthAlgorithm(String AuthAlgorithm)
AuthAlgorithm
- Authentication algorithm. Values:
`md5`: Calculate the hash using MD5.
`sha256`: Calculate the hash using SHA-256.
Default value: `md5`.
Note: This field may return·`null`, indicating that no valid values can be obtained.public AuthenticationTypeA getTypeA()
public void setTypeA(AuthenticationTypeA TypeA)
TypeA
- Timestamp hotlink protection mode A configuration
Note: This field may return `null`, indicating that no valid value can be obtained.public AuthenticationTypeB getTypeB()
public void setTypeB(AuthenticationTypeB TypeB)
TypeB
- Timestamp hotlink protection mode B configuration (mode B is being upgraded and is currently not supported)
Note: This field may return `null`, indicating that no valid value can be obtained.public AuthenticationTypeC getTypeC()
public void setTypeC(AuthenticationTypeC TypeC)
TypeC
- Timestamp hotlink protection mode C configuration
Note: This field may return `null`, indicating that no valid value can be obtained.public AuthenticationTypeD getTypeD()
public void setTypeD(AuthenticationTypeD TypeD)
TypeD
- Timestamp hotlink protection mode D configuration
Note: This field may return `null`, indicating that no valid value can be obtained.Copyright © 2024. All rights reserved.