Class SecretServerCredentials.DescriptorImpl

    • Constructor Detail

      • DescriptorImpl

        public DescriptorImpl()
    • Method Detail

      • doFillCredentialIdItems

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

        @POST
        public FormValidation doCheckCredentialId​(@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​(@QueryParameter
                                              String value)
                                       throws IOException,
                                              javax.servlet.ServletException
        Validates the Secret ID input by the user.
        Throws:
        IOException
        javax.servlet.ServletException
      • doTestConnection

        @POST
        public FormValidation doTestConnection​(@AncestorInPath
                                               Item owner,
                                               @QueryParameter("vaultUrl")
                                               String vaultUrl,
                                               @QueryParameter("credentialId")
                                               String credentialId,
                                               @QueryParameter("secretId")
                                               String secretId)
        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.