Package jenkins.security.csp
Interface CspHeaderDecider
- All Superinterfaces:
ExtensionPoint
- All Known Implementing Classes:
CspConfiguration.ConfigurationHeaderDecider,DevelopmentHeaderDecider,FallbackDecider,SystemPropertyHeaderDecider
@Restricted(org.kohsuke.accmod.restrictions.Beta.class)
public interface CspHeaderDecider
extends ExtensionPoint
Extension point to decide which
CspHeader will be set.
The highest priority implementation returning a value will be chosen both to
show the configuration UI for CspConfiguration,
if any, and to select the header during request processing.
As a result, implementations must have fairly consistent behavior and not, e.g.,
inspect the current HTTP request to decide between providing a value (any value)
or not (inspecting the request and deciding which header to choose is fine,
as long as an implementation always returns a header).- Since:
- TODO
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionList<CspHeaderDecider> all()decide()static Optional<CspHeaderDecider>
-
Method Details
-
decide
-
all
-
getCurrentDecider
-