public class RefererAuthPolicy extends AbstractModel
header, skipSign
Constructor and Description |
---|
RefererAuthPolicy() |
RefererAuthPolicy(RefererAuthPolicy 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 |
getAuthType()
Get Referer authentication method.
|
String |
getBlankRefererAllowed()
Get Whether to allow requests with empty referer to access this domain name.
|
String[] |
getReferers()
Get The list of referers (up to 20).
|
String |
getStatus()
Get [Referer hotlink protection](https://intl.cloud.tencent.com/document/product/266/33985) status.
|
void |
setAuthType(String AuthType)
Set Referer authentication method.
|
void |
setBlankRefererAllowed(String BlankRefererAllowed)
Set Whether to allow requests with empty referer to access this domain name.
|
void |
setReferers(String[] Referers)
Set The list of referers (up to 20).
|
void |
setStatus(String Status)
Set [Referer hotlink protection](https://intl.cloud.tencent.com/document/product/266/33985) status.
|
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 RefererAuthPolicy()
public RefererAuthPolicy(RefererAuthPolicy source)
public String getStatus()
public void setStatus(String Status)
Status
- [Referer hotlink protection](https://intl.cloud.tencent.com/document/product/266/33985) status. Valid values:
public String getAuthType()
public void setAuthType(String AuthType)
AuthType
- Referer authentication method. Valid values:
public String[] getReferers()
public void setReferers(String[] Referers)
Referers
- The list of referers (up to 20). When `Status` is set to `Enabled`, `Referers` cannot be empty. Enter domain names as referers.public String getBlankRefererAllowed()
public void setBlankRefererAllowed(String BlankRefererAllowed)
BlankRefererAllowed
- Whether to allow requests with empty referer to access this domain name. Valid values:
Copyright © 2024. All rights reserved.