Contribute to the Content-Security-Policy rules. @since 2.539
| 35 | * @since 2.539 |
| 36 | */ |
| 37 | @Restricted(Beta.class) |
| 38 | public interface Contributor extends ExtensionPoint { |
| 39 | |
| 40 | /** |
| 41 | * Contribute to the builder's rules by adding to or |
| 42 | * removing from the provided {@link jenkins.security.csp.CspBuilder}. |
| 43 | * |
| 44 | * @param cspBuilder the builder |
| 45 | */ |
| 46 | default void apply(CspBuilder cspBuilder) { |
| 47 | } |
| 48 | |
| 49 | static ExtensionList<Contributor> all() { |
| 50 | return ExtensionList.lookup(Contributor.class); |
| 51 | } |
| 52 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…