Package jenkins.security.csp.impl
Class CspConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
jenkins.security.csp.impl.CspConfiguration
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,PersistentDescriptor,Saveable,Loadable,OnMaster
@Extension
@Symbol("contentSecurityPolicy")
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class CspConfiguration
extends GlobalConfiguration
implements PersistentDescriptor
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier and TypeFieldDescriptionprotected BooleanPackage-private to allow setting byCspRecommendationwithout saving.Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoCheckEnforce(boolean enforce) List<? extends AdvancedConfiguration> For JellyDefine the global configuration category the global config of this Descriptor is in.protected XmlFilebooleanbooleanvoidsetAdvanced(List<? extends AdvancedConfiguration> advanced) voidsetEnforce(boolean enforce) Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, configure, getDescriptor, getGlobalConfigPageMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, 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, toMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.PersistentDescriptor
load
-
Field Details
-
enforce
Package-private to allow setting byCspRecommendationwithout saving. Also exposes the "unconfigured" state asnull, unlike the public getter used by Jelly.
-
-
Constructor Details
-
CspConfiguration
public CspConfiguration()
-
-
Method Details
-
getCategory
Description copied from class:DescriptorDefine the global configuration category the global config of this Descriptor is in.- Overrides:
getCategoryin classDescriptor<GlobalConfiguration>- Returns:
- never null, always the same value for a given instance of
Descriptor.
-
isEnforce
public boolean isEnforce() -
setEnforce
@DataBoundSetter public void setEnforce(boolean enforce) -
getConfigFile
- Overrides:
getConfigFilein classDescriptor<GlobalConfiguration>
-
isShowHeaderConfiguration
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public boolean isShowHeaderConfiguration() -
getCurrentDecider
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public CspHeaderDecider getCurrentDecider() -
doCheckEnforce
-
getAdvanced
-
setAdvanced
@DataBoundSetter public void setAdvanced(List<? extends AdvancedConfiguration> advanced) throws IOException - Throws:
IOException
-
getAdvancedDescriptors
public DescriptorExtensionList<AdvancedConfiguration,AdvancedConfigurationDescriptor> getAdvancedDescriptors()For Jelly
-