Class PostBuildScan.DescriptorImp

    • Constructor Detail

      • DescriptorImp

        public DescriptorImp()
    • Method Detail

      • doCheckAppSpiderEntUrl

        public FormValidation doCheckAppSpiderEntUrl​(@QueryParameter
                                                     String value)
        Performs on-the-fly validation of the form field 'name'.
        Parameters:
        value - This parameter receives the value that the user has typed.
        Returns:
        Indicates the outcome of the validation. This is sent to the browser.

        Note that returning FormValidation.error(String) does not prevent the form from being saved. It just means that a message will be displayed to the user.

      • getAppSpiderEntUrl

        public String getAppSpiderEntUrl()
      • setAppSpiderEntUrl

        public void setAppSpiderEntUrl​(String appSpiderEntUrl)
      • getAppSpiderUsername

        public String getAppSpiderUsername()
      • setAppSpiderUsername

        public void setAppSpiderUsername​(String appSpiderUsername)
      • getAppSpiderPassword

        public Secret getAppSpiderPassword()
      • setAppSpiderPassword

        public void setAppSpiderPassword​(Secret appSpiderPassword)
      • getAppSpiderAllowSelfSignedCertificate

        public boolean getAppSpiderAllowSelfSignedCertificate()
      • setAppSpiderAllowSelfSignedCertificate

        public void setAppSpiderAllowSelfSignedCertificate​(boolean appSpiderAllowSelfSignedCertificate)
      • isAppSpiderEnableMultiClientOrSysAdmin

        public boolean isAppSpiderEnableMultiClientOrSysAdmin()
      • setAppSpiderEnableMultiClientOrSysAdmin

        public void setAppSpiderEnableMultiClientOrSysAdmin​(boolean appSpiderAllowMultiClientOrSysAdmin)
      • getScanConfigNames

        public String[] getScanConfigNames()
      • getScanConfigEngines

        public String[] getScanConfigEngines()
      • getAppSpiderClientId

        public String getAppSpiderClientId()
      • setAppSpiderClientId

        public void setAppSpiderClientId​(String appSpiderClientId)
      • getAppSpiderClientName

        public String getAppSpiderClientName()
      • setAppSpiderClientName

        public void setAppSpiderClientName​(String appSpiderClientName)
      • doFillClientNameItems

        public ListBoxModel doFillClientNameItems​(@AncestorInPath
                                                  Item item)
                                           throws InterruptedException
        Method for populating the dropdown menu with all the available scan configs
        Returns:
        ListBoxModel containing the scan config names
        Throws:
        InterruptedException
      • doFillConfigNameItems

        public ListBoxModel doFillConfigNameItems​(@QueryParameter
                                                  String clientName,
                                                  @AncestorInPath
                                                  Item item)
        Method for populating the dropdown menu with all the available scan configs
        Returns:
        ListBoxModel containing the scan config names
      • doFillScanConfigEngineGroupNameItems

        public ListBoxModel doFillScanConfigEngineGroupNameItems​(@AncestorInPath
                                                                 Item item)
        Method for populating the dropdown menu with all the available scan engine groups
        Returns:
        ListBoxModel containing engine details
      • doTestCredentials

        @POST
        public FormValidation doTestCredentials​(@QueryParameter("appSpiderAllowSelfSignedCertificate")
                                                boolean allowSelfSignedCertificate,
                                                @QueryParameter("appSpiderEntUrl")
                                                String appSpiderEntUrl,
                                                @QueryParameter("appSpiderUsername")
                                                String username,
                                                @QueryParameter("appSpiderPassword")
                                                Secret password)
        calls the login endpoint with the provided credentials reporting success/failure back to the user via form validation
        Parameters:
        allowSelfSignedCertificate - If true certificate errors will be ignored, only meaningful if URL is using https
        appSpiderEntUrl - Full URL path including protocol to the appspider rest api endpoint
        username - Username used for authentication
        password - Password used for authentication
        Returns:
        FormValidation result of the credentials test
      • doValidateNewScanConfig

        public FormValidation doValidateNewScanConfig​(@QueryParameter("scanConfigName")
                                                      String scanConfigName,
                                                      @QueryParameter("scanConfigUrl")
                                                      String scanConfigUrl)