Package jenkins.security.csp.impl
Class CspDecorator
java.lang.Object
hudson.model.Descriptor<PageDecorator>
hudson.model.PageDecorator
jenkins.security.csp.impl.CspDecorator
- All Implemented Interfaces:
ExtensionPoint,Describable<PageDecorator>,Saveable,Loadable,OnMaster
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
@Extension
public class CspDecorator
extends PageDecorator
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.PageDecorator
ALLFields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDetermines the name of the HTTP header to set.getContentSecurityPolicyHeaderValue(jakarta.servlet.http.HttpServletRequest req) getReportingEndpointsHeaderValue(jakarta.servlet.http.HttpServletRequest req) Methods inherited from class hudson.model.PageDecorator
all, getDescriptor, getUrlMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
CspDecorator
public CspDecorator()
-
-
Method Details
-
getContentSecurityPolicyHeaderValue
-
getReportingEndpointsHeaderValue
@CheckForNull public String getReportingEndpointsHeaderValue(jakarta.servlet.http.HttpServletRequest req) -
getContentSecurityPolicyHeaderName
Determines the name of the HTTP header to set.- Returns:
- the name of the HTTP header to set.
-