Class FiniteStateAnalyzeBinaryRecorder

All Implemented Interfaces:
ExtensionPoint, Describable<Publisher>, BuildStep, SimpleBuildStep

public class FiniteStateAnalyzeBinaryRecorder extends BaseFiniteStateRecorder
Refactored Binary Analysis Recorder that extends the base class to reduce code duplication. This demonstrates how the new base classes can be used to eliminate repetitive code.
  • Constructor Details

    • FiniteStateAnalyzeBinaryRecorder

      @DataBoundConstructor public FiniteStateAnalyzeBinaryRecorder(String subdomain, String apiTokenCredentialsId, String binaryFilePath, String projectName)
  • Method Details

    • getBinaryFilePath

      public String getBinaryFilePath()
    • getScaEnabled

      public boolean getScaEnabled()
    • getSastEnabled

      public boolean getSastEnabled()
    • getConfigEnabled

      public boolean getConfigEnabled()
    • getReachabilityEnabled

      public boolean getReachabilityEnabled()
    • setBinaryFilePath

      @DataBoundSetter public void setBinaryFilePath(String binaryFilePath)
    • setScaEnabled

      @DataBoundSetter public void setScaEnabled(boolean scaEnabled)
    • setSastEnabled

      @DataBoundSetter public void setSastEnabled(boolean sastEnabled)
    • setConfigEnabled

      @DataBoundSetter public void setConfigEnabled(boolean configEnabled)
    • setReachabilityEnabled

      @DataBoundSetter public void setReachabilityEnabled(boolean reachabilityEnabled)
    • configureRequest

      protected void configureRequest(FiniteStateScanRequest request)
      Description copied from class: BaseFiniteStateRecorder
      Populate the type-specific portion of the scan request (kind + per-analysis fields) for the public v0 REST transport. The framework fills the common fields (subdomain, token, project, version, polling, etc.).
      Specified by:
      configureRequest in class BaseFiniteStateRecorder
    • getAnalysisType

      protected String getAnalysisType()
      Description copied from class: BaseFiniteStateRecorder
      Get the analysis type name for logging and results
      Specified by:
      getAnalysisType in class BaseFiniteStateRecorder
    • getFilePathFieldName

      protected String getFilePathFieldName()
      Description copied from class: BaseFiniteStateRecorder
      Get the file path field name for validation
      Specified by:
      getFilePathFieldName in class BaseFiniteStateRecorder
    • getFilePathValue

      protected String getFilePathValue()
      Description copied from class: BaseFiniteStateRecorder
      Get the file path value
      Specified by:
      getFilePathValue in class BaseFiniteStateRecorder