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
,Loadable
,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
-
Method Summary
Modifier and TypeMethodDescriptionget()
Define the global configuration category the global config of this Descriptor is in.boolean
boolean
boolean
boolean
void
setCreationOfLegacyTokenEnabled
(boolean creationOfLegacyTokenEnabled) void
setTokenGenerationOnCreationEnabled
(boolean tokenGenerationOnCreationEnabled) void
setUsageStatisticsEnabled
(boolean usageStatisticsEnabled) Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, configure, getDescriptor, getGlobalConfigPage
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, 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
-
Constructor Details
-
ApiTokenPropertyConfiguration
public ApiTokenPropertyConfiguration()
-
-
Method Details
-
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
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
.
-