Class CompatibleContributor

java.lang.Object
jenkins.security.csp.impl.CompatibleContributor
All Implemented Interfaces:
ExtensionPoint, Contributor

@Extension(ordinal=1.0737418235E9) @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public final class CompatibleContributor extends Object implements Contributor
Add the CSP directives currently required for Jenkins to work properly. The long-term goal is for these directives to become unnecessary. Any for which we determine with high confidence they can never be fixed should be moved into BaseContributor instead.
  • Constructor Details

    • CompatibleContributor

      public CompatibleContributor()
  • Method Details

    • apply

      public void apply(CspBuilder cspBuilder)
      Description copied from interface: Contributor
      Contribute to the builder's rules by adding to or removing from the provided CspBuilder.
      Specified by:
      apply in interface Contributor
      Parameters:
      cspBuilder - the builder