Class DASTScan.DescriptorImpl

    • Constructor Detail

      • DescriptorImpl

        public DescriptorImpl()
        Provide access to the API key from DASTScan
    • Method Detail

      • getApikey

        public Secret getApikey()
        Return the encrypted secret API key. This is required for functioning of the form
        Returns:
        apiKey Jenkins integration API key
      • setApikey

        public void setApikey​(String apikey)
        Encode and set the string API key. This is required for functioning of the form
        Parameters:
        apikey - Jenkins integration API key
      • doCheckEmail

        public FormValidation doCheckEmail​(@QueryParameter
                                           String email,
                                           @AncestorInPath
                                           Item item)
                                    throws IOException,
                                           javax.servlet.ServletException
        Check the email field.
        Parameters:
        email - Email used for app.breachlock.com
        item -
        Returns:
        FormValidation
        Throws:
        IOException
        javax.servlet.ServletException
      • doCheckAsset

        @POST
        public FormValidation doCheckAsset​(@QueryParameter
                                           String asset,
                                           @AncestorInPath
                                           Item item)
                                    throws IOException,
                                           javax.servlet.ServletException
        Check the asset field.
        Parameters:
        asset - Asset to scan
        item -
        Returns:
        FormValidation
        Throws:
        IOException
        javax.servlet.ServletException
      • doCheckApikey

        public FormValidation doCheckApikey​(@QueryParameter
                                            String apikey,
                                            @AncestorInPath
                                            Item item)
                                     throws IOException,
                                            javax.servlet.ServletException
        Check the API key field.
        Parameters:
        apikey - Jenkins integration API key
        item -
        Returns:
        FormValidation
        Throws:
        IOException
        javax.servlet.ServletException
      • doTestConnection

        @POST
        public FormValidation doTestConnection​(@QueryParameter
                                               String apikey,
                                               @QueryParameter
                                               String asset,
                                               @QueryParameter
                                               String email)
                                        throws IOException,
                                               javax.servlet.ServletException
        Register the plugin to the Breachlock Platform.
        Parameters:
        apikey - Jenkins integration API key
        asset - Asset to scan
        email - Email used for app.breachlock.com
        Returns:
        FormValidation
        Throws:
        IOException
        javax.servlet.ServletException
      • doFillAssetItems

        @POST
        public ListBoxModel doFillAssetItems​(@QueryParameter
                                             String apikey,
                                             @QueryParameter
                                             String email)
        Fill the selectbox of with assets supplied by the Breachlock Platform.
        Parameters:
        apikey - Jenkins integration API key
        email - Email used for app.breachlock.com
        Returns:
        ListBoxModel Selectbox with assets