Package com.shapesecurity.salvation2
Class PolicyInOrigin
- java.lang.Object
-
- com.shapesecurity.salvation2.PolicyInOrigin
-
public class PolicyInOrigin extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description URLWithScheme
origin
Policy
policy
-
Constructor Summary
Constructors Constructor Description PolicyInOrigin(Policy policy, URLWithScheme origin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowsConnection(URLWithScheme url)
boolean
allowsFontFromSource(URLWithScheme url)
boolean
allowsFormAction(URLWithScheme url)
boolean
allowsFrameAncestor(URLWithScheme url)
boolean
allowsFrameFromSource(URLWithScheme url)
boolean
allowsImageFromSource(URLWithScheme url)
boolean
allowsManifestFromSource(URLWithScheme url)
boolean
allowsMediaFromSource(URLWithScheme url)
boolean
allowsNavigation(URLWithScheme url)
boolean
allowsObjectFromSource(URLWithScheme url)
boolean
allowsPrefetchFromSource(URLWithScheme url)
boolean
allowsScriptFromSource(URLWithScheme url)
boolean
allowsStyleFromSource(URLWithScheme url)
boolean
allowsUnsafeInlineScript()
boolean
allowsUnsafeInlineStyle()
boolean
allowsWorkerFromSource(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)
-
-