Class PolicyInOrigin

java.lang.Object
org.htmlunit.csp.PolicyInOrigin

public class PolicyInOrigin extends Object
A convenience wrapper that pairs a Policy with its origin, providing simplified query methods that automatically supply the origin to the underlying policy checks.

Each allows* method delegates to the corresponding method on Policy, filling in Optional.of(origin_) for the origin parameter and Optional.empty() for any parameters that are not applicable to the simplified query (such as nonce, integrity, or redirect information).