Package io.jenkins.plugins.csp
Class ContentSecurityPolicyConfiguration
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- io.jenkins.plugins.csp.ContentSecurityPolicyConfiguration
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,PersistentDescriptor
,Saveable
,OnMaster
@Extension @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Symbol("contentSecurityPolicyConfiguration") public class ContentSecurityPolicyConfiguration extends GlobalConfiguration implements PersistentDescriptor
Customize the Content-Security-Policy rules.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_RULE
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description ContentSecurityPolicyConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GlobalConfigurationCategory
getCategory()
String
getRule()
boolean
isReportOnly()
void
setReportOnly(boolean reportOnly)
void
setRule(String rule)
-
Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPage
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.model.PersistentDescriptor
load
-
-
-
-
Field Detail
-
DEFAULT_RULE
public static final String DEFAULT_RULE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCategory
@NonNull public GlobalConfigurationCategory getCategory()
- Overrides:
getCategory
in classDescriptor<GlobalConfiguration>
-
getRule
public String getRule()
-
setRule
@DataBoundSetter public void setRule(String rule)
-
isReportOnly
public boolean isReportOnly()
-
setReportOnly
@DataBoundSetter public void setReportOnly(boolean reportOnly)
-
-