Package testingbot

Class TestingBotCredentials.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<com.cloudbees.plugins.credentials.Credentials>
com.cloudbees.plugins.credentials.CredentialsDescriptor
testingbot.TestingBotCredentials.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster, IconSpec
Enclosing class:
TestingBotCredentials

@Extension(ordinal=1.0) @Symbol("testingbot") public static class TestingBotCredentials.DescriptorImpl extends com.cloudbees.plugins.credentials.CredentialsDescriptor
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
    • DescriptorImpl

      public DescriptorImpl(Class<? extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials> clazz)
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<com.cloudbees.plugins.credentials.Credentials>
    • isScopeRelevant

      public boolean isScopeRelevant()
      Overrides:
      isScopeRelevant in class com.cloudbees.plugins.credentials.CredentialsDescriptor
      Returns:
      always returns false since the scope of Local credentials are always Global.
    • isScopeRelevant

      public boolean isScopeRelevant(ModelObject object)
      Overrides:
      isScopeRelevant in class com.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.