Package testingbot
Class TestingBotCredentials.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<com.cloudbees.plugins.credentials.Credentials>
com.cloudbees.plugins.credentials.CredentialsDescriptor
testingbot.TestingBotCredentials.DescriptorImpl
- Enclosing class:
TestingBotCredentials
@Extension(ordinal=1.0)
@Symbol("testingbot")
public static class TestingBotCredentials.DescriptorImpl
extends com.cloudbees.plugins.credentials.CredentialsDescriptor
-
Nested Class Summary
Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.CredentialsDescriptor
com.cloudbees.plugins.credentials.CredentialsDescriptor.EnhancedCheckMethodNested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
ConstructorsConstructorDescriptionDescriptorImpl(Class<? extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials> clazz) -
Method Summary
Modifier and TypeMethodDescriptionfinal FormValidationdoCheckId(String value, ModelObject context) doVerifyCredentials(String key, String secret, ModelObject context) Verifies a key/secret against the TestingBot API and reports whether they authenticate.booleanbooleanisScopeRelevant(ModelObject object) Methods inherited from class com.cloudbees.plugins.credentials.CredentialsDescriptor
calcAutoCompleteSettings, calcFillSettings, doFillScopeItems, findContextInPath, findContextInPath, getCheckMethod, getCredentialsPage, getDescription, getIconClassName, isApplicable, isScopeRelevant, isScopeRelevant, isScopeRelevant, isScopeRelevant, lookupContext, unwrapContextMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, 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
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl() -
DescriptorImpl
public DescriptorImpl(Class<? extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials> clazz)
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<com.cloudbees.plugins.credentials.Credentials>
-
isScopeRelevant
public boolean isScopeRelevant()- Overrides:
isScopeRelevantin classcom.cloudbees.plugins.credentials.CredentialsDescriptor- Returns:
- always returns false since the scope of Local credentials are always Global.
-
isScopeRelevant
- Overrides:
isScopeRelevantin classcom.cloudbees.plugins.credentials.CredentialsDescriptor- Returns:
- always returns false since the scope of Local credentials are always Global.
-
doCheckId
@POST public final FormValidation doCheckId(@QueryParameter String value, @AncestorInPath ModelObject context) -
doVerifyCredentials
@POST public FormValidation doVerifyCredentials(@QueryParameter String key, @QueryParameter String secret, @AncestorInPath ModelObject context) Verifies a key/secret against the TestingBot API and reports whether they authenticate. Gated so only users who can configure the surrounding item (or admins) can probe.
-