Class SecretServerCredentials.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<com.cloudbees.plugins.credentials.Credentials>
com.cloudbees.plugins.credentials.CredentialsDescriptor
com.delinea.secrets.jenkins.global.cred.SecretServerCredentials.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster, IconSpec
Enclosing class:
SecretServerCredentials

@Extension public static class SecretServerCredentials.DescriptorImpl extends com.cloudbees.plugins.credentials.CredentialsDescriptor
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • getDisplayName

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

      @POST public ListBoxModel doFillCredentialIdItems(@AncestorInPath Item owner)
      Populates the list of available Credential IDs for the dropdown in the Jenkins UI.
      Parameters:
      owner - - The Jenkins item context.
      Returns:
      A ListBoxModel containing the available Credential IDs.
    • doCheckCredentialId

      @POST public FormValidation doCheckCredentialId(@AncestorInPath Item item, @QueryParameter String value) throws IOException, javax.servlet.ServletException
      Validates the Credential ID input by the user.
      Throws:
      IOException
      javax.servlet.ServletException
    • doCheckSecretId

      @POST public FormValidation doCheckSecretId(@AncestorInPath Item item, @QueryParameter String value) throws IOException, javax.servlet.ServletException
      Validates the Secret ID input by the user.
      Throws:
      IOException
      javax.servlet.ServletException
    • doCheckUsernameSlug

      @POST public FormValidation doCheckUsernameSlug(@AncestorInPath Item item, @QueryParameter String value) throws IOException, javax.servlet.ServletException
      Throws:
      IOException
      javax.servlet.ServletException
    • doCheckPasswordSlugName

      @POST public FormValidation doCheckPasswordSlugName(@AncestorInPath Item item, @QueryParameter String value) throws IOException, javax.servlet.ServletException
      Throws:
      IOException
      javax.servlet.ServletException
    • doTestConnection

      @POST public FormValidation doTestConnection(@AncestorInPath Item owner, @QueryParameter("usernameSlug") String usernameSlug, @QueryParameter("passwordSlugName") String passwordSlugName, @QueryParameter("vaultUrl") String vaultUrl, @QueryParameter("credentialId") String credentialId, @QueryParameter("secretId") String secretId, @QueryParameter("proxyHost") String proxyHost, @QueryParameter("proxyPort") String proxyPort, @QueryParameter("proxyUsername") String proxyUsername, @QueryParameter("proxyPassword") Secret proxyPassword, @QueryParameter("noProxyHosts") String noProxyHosts, @QueryParameter("useProxy") boolean useProxy)
      Tests the connection to the Secret Server using the provided parameters.
      Parameters:
      owner - - The Jenkins item context.
      vaultUrl - - The URL of the Secret Server.
      credentialId - - The ID of the credentials stored in Jenkins.
      secretId - - The ID of the secret stored in theSecret Server.
      Returns:
      FormValidation indicating whether the connection was successful or not.