Class AbstractArgs

    • Constructor Detail

      • AbstractArgs

        protected AbstractArgs()
        Constructor for AbstractArgs.
    • Method Detail

      • addProxyConfiguration

        protected void addProxyConfiguration​(String phost,
                                             String pport)
        Adds the proxy configuration switches and arguments to the command line arguments list.
        Parameters:
        phost - a String object.
        pport - a String object.
      • addProxyCredentials

        protected void addProxyCredentials​(String puser,
                                           String ppassword)
        Adds the proxy credentials switches and arguments to the command line arguments list.
        Parameters:
        puser - a String object.
        ppassword - a String object.
      • addProxyConfiguration

        protected void addProxyConfiguration​(boolean isRemote,
                                             EnvVars envVars,
                                             String phost,
                                             String pport,
                                             String puser,
                                             String ppassword)
        Constructs proxy URL and adds it to the EnvVars if the build is happening in a remote workspace. If the build is happening in the local workspace, then adds the proxy detail switches and arguments to the command line arguments list.
        Parameters:
        isRemote - a boolean.
        envVars - a EnvVars object.
        phost - a String object.
        pport - a String object.
        puser - a String object.
        ppassword - a String object.
      • addApiCredentials

        protected void addApiCredentials​(boolean isRemote,
                                         EnvVars envVars,
                                         String vid,
                                         String vkey)
        Adds the Veracode API credentials to the EnvVars if the build is happening in a remote workspace. If the build is happening in the local workspace, then adds the Veracode API credentials switches and arguments to the command line arguments list.
        Parameters:
        isRemote - a boolean.
        envVars - a EnvVars object.
        vid - a String object.
        vkey - a String object.
      • addAction

        protected void addAction​(String action)
        Adds the action switch and argument to the command line arguments list.
        Parameters:
        action - a String object.
      • getArguments

        public String[] getArguments()
        Returns a String that represents the plain text command line arguments added to the command line arguments list.
        Returns:
        an array of String objects.
      • getMaskedArguments

        public String[] getMaskedArguments()
        Returns a String that represents the plain text command line arguments added to the command line arguments list, but replaces sensitive arguments with a fixed-length sequence of '*' characters.

        The length of the sequence of characters is defined by the MASKED_ARG_LENGTH constant.

        Returns:
        an array of String objects.