Package hudson.plugins.git
Class ApiTokenPropertyConfiguration
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- hudson.plugins.git.ApiTokenPropertyConfiguration
-
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,PersistentDescriptor,Saveable,Loadable,OnMaster
@Extension @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Symbol("apiTokenProperty") public class ApiTokenPropertyConfiguration extends GlobalConfiguration implements PersistentDescriptor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApiTokenPropertyConfiguration.HashedApiToken-
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 org.kohsuke.stapler.HttpResponsedoGenerate(org.kohsuke.stapler.StaplerRequest req)org.kohsuke.stapler.HttpResponsedoRevoke(org.kohsuke.stapler.StaplerRequest req)net.sf.json.JSONObjectgenerateApiToken(String name)static ApiTokenPropertyConfigurationget()Collection<ApiTokenPropertyConfiguration.HashedApiToken>getApiTokens()GlobalConfigurationCategorygetCategory()booleanhasMatchingApiToken(String plainApiToken)booleanisValidApiToken(String plainApiToken)-
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()
-
getCategory
@NonNull public GlobalConfigurationCategory getCategory()
- Overrides:
getCategoryin classDescriptor<GlobalConfiguration>
-
doGenerate
public org.kohsuke.stapler.HttpResponse doGenerate(org.kohsuke.stapler.StaplerRequest req)
-
generateApiToken
public net.sf.json.JSONObject generateApiToken(@NonNull String name)
-
doRevoke
public org.kohsuke.stapler.HttpResponse doRevoke(org.kohsuke.stapler.StaplerRequest req)
-
getApiTokens
public Collection<ApiTokenPropertyConfiguration.HashedApiToken> getApiTokens()
-
isValidApiToken
public boolean isValidApiToken(String plainApiToken)
-
hasMatchingApiToken
public boolean hasMatchingApiToken(@NonNull String plainApiToken)
-
-