public class ContentSecurityPolicy extends Object
| 构造器和说明 |
|---|
ContentSecurityPolicy() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
getEnabled()
返回是否启用 ContentSecurityPolicy
|
String |
getPolicyDirectives()
返回策略
|
Boolean |
getReportOnly() |
boolean |
isEnabled()
返回是否启用 ContentSecurityPolicy
|
Boolean |
isReportOnly()
已过时。
|
void |
setEnabled(boolean enabled)
配置是否启用 ContentSecurityPolicy
|
void |
setPolicyDirectives(String policyDirectives)
设置策略
|
void |
setReportOnly(Boolean reportOnly) |
String |
toString() |
public boolean isEnabled()
public boolean getEnabled()
public void setEnabled(boolean enabled)
enabled - 是否启用 ContentSecurityPolicy@Deprecated public Boolean isReportOnly()
public Boolean getReportOnly()
public void setReportOnly(Boolean reportOnly)
public String getPolicyDirectives()
public void setPolicyDirectives(String policyDirectives)
policyDirectives - 策略Copyright © 2022 buession.com Inc.. All rights reserved.