Package com.shapesecurity.salvation2
Class PolicyInOrigin
- java.lang.Object
-
- com.shapesecurity.salvation2.PolicyInOrigin
-
public class PolicyInOrigin extends Object
-
-
Field Summary
Fields Modifier and Type Field Description URLWithSchemeoriginPolicypolicy
-
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)
-
-
-
Field Detail
-
policy
public final Policy policy
-
origin
public final URLWithScheme origin
-
-
Constructor Detail
-
PolicyInOrigin
public PolicyInOrigin(Policy policy, URLWithScheme origin)
-
-
Method Detail
-
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)
-
-