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
  • Constructor Details

    • ApiTokenPropertyConfiguration

      public ApiTokenPropertyConfiguration()
  • Method Details

    • 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 class Descriptor<GlobalConfiguration>
      Returns:
      never null, always the same value for a given instance of Descriptor.