@Extension @Symbol(value="queueItemAuthenticator") public class QueueItemAuthenticatorConfiguration extends GlobalConfiguration implements PersistentDescriptor
QueueItemAuthenticator
configurations on the system config page.Modifier and Type | Class and Description |
---|---|
static class |
QueueItemAuthenticatorConfiguration.ProviderImpl |
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
ExtensionPoint.LegacyInstancesAreScopedToHudson
clazz
Constructor and Description |
---|
QueueItemAuthenticatorConfiguration() |
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
By default, calls
StaplerRequest.bindJSON(Object, JSONObject) ,
appropriate when your implementation has getters and setters for all fields. |
static QueueItemAuthenticatorConfiguration |
get() |
DescribableList<QueueItemAuthenticator,QueueItemAuthenticatorDescriptor> |
getAuthenticators()
Provides all user-configured authenticators.
|
GlobalConfigurationCategory |
getCategory()
Define the global configuration category the global config of this Descriptor is in.
|
all, getDescriptor, getGlobalConfigPage
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
load
@NonNull public GlobalConfigurationCategory getCategory()
Descriptor
getCategory
in class Descriptor<GlobalConfiguration>
Descriptor
.public DescribableList<QueueItemAuthenticator,QueueItemAuthenticatorDescriptor> getAuthenticators()
QueueItemAuthenticatorProvider.authenticators()
;
or if you are looking for the authentication of an actual project, build, etc., use
Queue.Item.authenticate()
or Tasks.getAuthenticationOf(hudson.model.Queue.Task)
.public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
GlobalConfiguration
StaplerRequest.bindJSON(Object, JSONObject)
,
appropriate when your implementation has getters and setters for all fields.
Invoked when the global configuration page is submitted. Can be overridden to store descriptor-specific information.
configure
in class GlobalConfiguration
json
- The JSON object that captures the configuration data for this Descriptor
.
See https://www.jenkins.io/doc/developer/forms/structured-form-submission/Descriptor.FormException
@NonNull public static QueueItemAuthenticatorConfiguration get()
Copyright © 2004–2022. All rights reserved.