Interface AllowedOrigin
- All Superinterfaces:
Serializable
Represents a host-source, as specified by the Content Security Policy specification.
Instead of path, path-abempty is used.
-
Method Summary
-
Method Details
-
isOrigin
boolean isOrigin()- Returns:
- true if this
AllowedOrigininstance can be converted to aOrigin. - See Also:
-
toOrigin
Origin toOrigin()- Returns:
- convert this
AllowedOriginto a simpleOrigin. Check first if this is possible with theisOrigin()method.
-
matches
Test whether A URL url is said to match a host-source expression for a protected resource.Note: no path-part matching is supported in this method.
- Parameters:
origin- origin to testprotectedResourceUrl- url of the protected resource, that publishes the host-source- Returns:
- true when the url matches
-