Class OPlugin

    • Constructor Detail

      • OPlugin

        @DataBoundConstructor
        public OPlugin​(String filePath,
                       String title,
                       String scanProfile,
                       String platform,
                       boolean waitForResults,
                       int waitMinutes,
                       boolean breakBuildOnScore,
                       RiskInfo.RISK riskThreshold,
                       String apiKey,
                       String JsonCredentials)
                throws com.github.cliftonlabs.json_simple.JsonException
        Instantiates a new O plugin.
        Parameters:
        filePath - the mobile application file path
        title - the scan title
        scanProfile - the scan scanProfile to use
        platform - the application platform
        waitForResults - Boolean to wait for the scan results before finishing the job
        waitMinutes - the number of minutes to wait before resuming the job
        breakBuildOnScore - Boolean to break build if the risk is higher than the threshold
        riskThreshold - the risk threshold
        apiKey - the API key to authenticate the requests
        JsonCredentials - the credentials in JSON format to use for the scan
        Throws:
        com.github.cliftonlabs.json_simple.JsonException
    • Method Detail

      • getApiKey

        public Secret getApiKey()
        Gets api key.
        Returns:
        the api key
      • setApiKey

        public void setApiKey​(String apiKey)
        Sets api key.
        Parameters:
        apiKey - the api key
      • setFilePath

        @DataBoundSetter
        public void setFilePath​(@Nonnull
                                String filePath)
        Sets file name.
        Parameters:
        filePath - the file name
      • setTitle

        @DataBoundSetter
        public void setTitle​(String title)
        Sets title.
        Parameters:
        title - the title
      • isWaitingForResults

        public boolean isWaitingForResults()
        Description copied from interface: OParameters
        Is wait for results boolean.
        Specified by:
        isWaitingForResults in interface OParameters
        Returns:
        the boolean
      • setWaitingForResults

        @DataBoundSetter
        public void setWaitingForResults​(boolean waitForResults)
        Sets wait for results.
        Parameters:
        waitForResults - the wait for results
      • getWaitMinutes

        public int getWaitMinutes()
        Description copied from interface: OParameters
        Gets wait minutes.
        Specified by:
        getWaitMinutes in interface OParameters
        Returns:
        the wait minutes
      • setWaitMinutes

        @DataBoundSetter
        public void setWaitMinutes​(int waitMinutes)
        Sets wait minutes.
        Parameters:
        waitMinutes - the wait minutes
      • setScanProfile

        @DataBoundSetter
        public void setScanProfile​(String scanProfile)
        Sets scanProfile.
        Parameters:
        scanProfile - the scanProfile
      • setPlatform

        @DataBoundSetter
        public void setPlatform​(String platform)
        Sets platform.
        Parameters:
        platform - the platform
      • isBreakBuildOnScore

        public boolean isBreakBuildOnScore()
        Description copied from interface: OParameters
        Is break build on score boolean.
        Specified by:
        isBreakBuildOnScore in interface OParameters
        Returns:
        the boolean
      • setBreakBuildOnScore

        @DataBoundSetter
        public void setBreakBuildOnScore​(boolean breakBuildOnScore)
        Sets break build on score.
        Parameters:
        breakBuildOnScore - the break build on score
      • setScoreThreshold

        @DataBoundSetter
        public void setScoreThreshold​(RiskInfo.RISK riskThreshold)
        Sets score threshold.
        Parameters:
        riskThreshold - the risk threshold
      • setCredentials

        @DataBoundSetter
        public void setCredentials​(List<Credentials> credentials)
        Set the list of credentials passed from the task config
        Parameters:
        credentials -