Package org.htmlunit.csp
Class PolicyInOrigin
- java.lang.Object
-
- org.htmlunit.csp.PolicyInOrigin
-
public class PolicyInOrigin extends Object
-
-
Constructor Summary
Constructors Constructor Description PolicyInOrigin(Policy policy, URLWithScheme origin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowsConnection(URLWithScheme url)booleanallowsFontFromSource(URLWithScheme url)booleanallowsFormAction(URLWithScheme url)booleanallowsFrameAncestor(URLWithScheme url)booleanallowsFrameFromSource(URLWithScheme url)booleanallowsImageFromSource(URLWithScheme url)booleanallowsManifestFromSource(URLWithScheme url)booleanallowsMediaFromSource(URLWithScheme url)booleanallowsNavigation(URLWithScheme url)booleanallowsObjectFromSource(URLWithScheme url)booleanallowsPrefetchFromSource(URLWithScheme url)booleanallowsScriptFromSource(URLWithScheme url)booleanallowsStyleFromSource(URLWithScheme url)booleanallowsUnsafeInlineScript()booleanallowsUnsafeInlineStyle()booleanallowsWorkerFromSource(URLWithScheme url)PolicygetPolicy()
-
-
-
Constructor Detail
-
PolicyInOrigin
public PolicyInOrigin(Policy policy, URLWithScheme origin)
-
-
Method Detail
-
getPolicy
public Policy getPolicy()
-
allowsScriptFromSource
public boolean allowsScriptFromSource(URLWithScheme url)
-
allowsStyleFromSource
public boolean allowsStyleFromSource(URLWithScheme url)
-
allowsImageFromSource
public boolean allowsImageFromSource(URLWithScheme url)
-
allowsFrameFromSource
public boolean allowsFrameFromSource(URLWithScheme url)
-
allowsWorkerFromSource
public boolean allowsWorkerFromSource(URLWithScheme url)
-
allowsFontFromSource
public boolean allowsFontFromSource(URLWithScheme url)
-
allowsObjectFromSource
public boolean allowsObjectFromSource(URLWithScheme url)
-
allowsMediaFromSource
public boolean allowsMediaFromSource(URLWithScheme url)
-
allowsManifestFromSource
public boolean allowsManifestFromSource(URLWithScheme url)
-
allowsPrefetchFromSource
public boolean allowsPrefetchFromSource(URLWithScheme url)
-
allowsUnsafeInlineScript
public boolean allowsUnsafeInlineScript()
-
allowsUnsafeInlineStyle
public boolean allowsUnsafeInlineStyle()
-
allowsConnection
public boolean allowsConnection(URLWithScheme url)
-
allowsNavigation
public boolean allowsNavigation(URLWithScheme url)
-
allowsFrameAncestor
public boolean allowsFrameAncestor(URLWithScheme url)
-
allowsFormAction
public boolean allowsFormAction(URLWithScheme url)
-
-