Class PolicyListInOrigin

java.lang.Object
org.htmlunit.csp.CspQueriesInOrigin
org.htmlunit.csp.PolicyListInOrigin

public class PolicyListInOrigin extends CspQueriesInOrigin
A convenience wrapper that pairs a PolicyList with its origin. Query methods are defined on CspQueriesInOrigin; AND semantics come from PolicyList.
Since:
5.4.0
Author:
Ronald Brill, Rick Mitchell
See Also:
  • Constructor Details

    • PolicyListInOrigin

      public PolicyListInOrigin(PolicyList policyList, URLWithScheme origin)
      Ctor.
      Parameters:
      policyList - the Content Security Policy list to query against
      origin - the origin of the protected resource
  • Method Details

    • getPolicyList

      public PolicyList getPolicyList()
      Returns the underlying PolicyList.
      Returns:
      the policy list associated with this origin-bound wrapper