Class ApiTokens
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
org.jenkinsci.plugins.registry.notification.token.ApiTokens
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,PersistentDescriptor
,Saveable
,Loadable
,OnMaster
@Extension
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
@Symbol("dockerHubApiTokens")
public class ApiTokens
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.StaplerRequest req) org.kohsuke.stapler.HttpResponse
doRevoke
(org.kohsuke.stapler.StaplerRequest req) net.sf.json.JSONObject
generateApiToken
(String name) static ApiTokens
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
-
ApiTokens
public ApiTokens()
-
-
Method Details
-
getCategory
- Overrides:
getCategory
in classDescriptor<GlobalConfiguration>
-
get
-
doGenerate
@POST public org.kohsuke.stapler.HttpResponse doGenerate(org.kohsuke.stapler.StaplerRequest req) -
generateApiToken
-
doRevoke
@POST public org.kohsuke.stapler.HttpResponse doRevoke(org.kohsuke.stapler.StaplerRequest req) -
getApiTokens
-
isValidApiToken
-
hasMatchingApiToken
-