Class InstanceConfiguration.DefensicsInstanceConfigurationDescriptor

    • Constructor Detail

      • DefensicsInstanceConfigurationDescriptor

        public DefensicsInstanceConfigurationDescriptor()
    • Method Detail

      • doCheckName

        public FormValidation doCheckName​(@QueryParameter
                                          String name)
        Validation for Defensics instance name.
        Parameters:
        name - The name the user has entered.
        Returns:
        Ok if name is valid, otherwise Error.
      • doFillCredentialsIdItems

        public ListBoxModel doFillCredentialsIdItems​(@AncestorInPath
                                                     Item item,
                                                     @QueryParameter
                                                     String credentialsId)
        Fills Credentials drop down menu with the StringCredentials description field values.
        Parameters:
        item - nearest ancestor item in Jenkins hierarchy.
        credentialsId - currently selected credentials (can be null).
        Returns:
        List box model.
      • doCheckCredentialsId

        public FormValidation doCheckCredentialsId​(@AncestorInPath
                                                   Item item,
                                                   @QueryParameter
                                                   String value)
        Check credential drop down list.
        Parameters:
        item - nearest ancestor item in Jenkins hierarchy.
        value - value of credentials id.
        Returns:
        Form validation result.
      • doCheckUrl

        public FormValidation doCheckUrl​(@QueryParameter
                                         String url)
        Validation for Defensics instance URL.
        Parameters:
        url - The url the user has entered.
        Returns:
        Ok if the url is set and is a valid url, otherwise Error.
      • doTestConnection

        @POST
        public FormValidation doTestConnection​(@QueryParameter("url")
                                               String url,
                                               @QueryParameter("certificateValidationDisabled")
                                               boolean certificateValidationDisabled,
                                               @QueryParameter("credentialsId")
                                               String credentialsId)
        Test the connection to Defensics instance.
        Parameters:
        url - The URL of the Defensics instance to connect to.
        credentialsId - Id of the authorization token-credential to be used (selected from the drop down menu).
        Returns:
        Ok if a get request is successfully made to the api endpoint of the url, otherwise Error.