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/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 TypeMethodDescriptionorg.kohsuke.stapler.HttpResponse
doGenerate
(org.kohsuke.stapler.StaplerRequest2 req) org.kohsuke.stapler.HttpResponse
doRevoke
(org.kohsuke.stapler.StaplerRequest2 req) net.sf.json.JSONObject
generateApiToken
(String name) get()
boolean
hasMatchingApiToken
(String plainApiToken) boolean
isValidApiToken
(String plainApiToken) 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
-
getCategory
- Overrides:
getCategory
in classDescriptor<GlobalConfiguration>
-
doGenerate
public org.kohsuke.stapler.HttpResponse doGenerate(org.kohsuke.stapler.StaplerRequest2 req) -
generateApiToken
-
doRevoke
public org.kohsuke.stapler.HttpResponse doRevoke(org.kohsuke.stapler.StaplerRequest2 req) -
getApiTokens
-
isValidApiToken
-
hasMatchingApiToken
-