Package jenkins.security.apitoken
Class ApiTokenPropertyConfiguration
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- jenkins.security.apitoken.ApiTokenPropertyConfiguration
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,PersistentDescriptor
,Saveable
,OnMaster
@Extension @Symbol("apiToken") public class ApiTokenPropertyConfiguration extends GlobalConfiguration implements PersistentDescriptor
Configuration for the new token generation when a user is created- Since:
- 2.129
-
-
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 inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description ApiTokenPropertyConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ApiTokenPropertyConfiguration
get()
GlobalConfigurationCategory
getCategory()
Define the global configuration category the global config of this Descriptor is in.boolean
hasExistingConfigFile()
boolean
isCreationOfLegacyTokenEnabled()
boolean
isTokenGenerationOnCreationEnabled()
boolean
isUsageStatisticsEnabled()
void
setCreationOfLegacyTokenEnabled(boolean creationOfLegacyTokenEnabled)
void
setTokenGenerationOnCreationEnabled(boolean tokenGenerationOnCreationEnabled)
void
setUsageStatisticsEnabled(boolean usageStatisticsEnabled)
-
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
-
-
-
-
Method Detail
-
get
public static ApiTokenPropertyConfiguration get()
-
hasExistingConfigFile
public boolean hasExistingConfigFile()
-
isTokenGenerationOnCreationEnabled
public boolean isTokenGenerationOnCreationEnabled()
-
setTokenGenerationOnCreationEnabled
public void setTokenGenerationOnCreationEnabled(boolean tokenGenerationOnCreationEnabled)
-
isCreationOfLegacyTokenEnabled
public boolean isCreationOfLegacyTokenEnabled()
-
setCreationOfLegacyTokenEnabled
public void setCreationOfLegacyTokenEnabled(boolean creationOfLegacyTokenEnabled)
-
isUsageStatisticsEnabled
public boolean isUsageStatisticsEnabled()
-
setUsageStatisticsEnabled
public void setUsageStatisticsEnabled(boolean usageStatisticsEnabled)
-
getCategory
public GlobalConfigurationCategory getCategory()
Description copied from class:Descriptor
Define the global configuration category the global config of this Descriptor is in.- Overrides:
getCategory
in classDescriptor<GlobalConfiguration>
- Returns:
- never null, always the same value for a given instance of
Descriptor
.
-
-