Class ScannerZipInstaller


  • public class ScannerZipInstaller
    extends java.lang.Object
    • Field Detail

      • DEFAULT_SIGNATURE_SCANNER_DOWNLOAD_URL_SUFFIX

        public static final java.lang.String DEFAULT_SIGNATURE_SCANNER_DOWNLOAD_URL_SUFFIX
        See Also:
        Constant Field Values
      • WINDOWS_SIGNATURE_SCANNER_DOWNLOAD_URL_SUFFIX

        public static final java.lang.String WINDOWS_SIGNATURE_SCANNER_DOWNLOAD_URL_SUFFIX
        See Also:
        Constant Field Values
      • MAC_SIGNATURE_SCANNER_DOWNLOAD_URL_SUFFIX

        public static final java.lang.String MAC_SIGNATURE_SCANNER_DOWNLOAD_URL_SUFFIX
        See Also:
        Constant Field Values
      • BLACK_DUCK_SIGNATURE_SCANNER_INSTALL_DIRECTORY

        public static final java.lang.String BLACK_DUCK_SIGNATURE_SCANNER_INSTALL_DIRECTORY
        See Also:
        Constant Field Values
      • VERSION_FILENAME

        public static final java.lang.String VERSION_FILENAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • ScannerZipInstaller

        public ScannerZipInstaller​(com.synopsys.integration.log.IntLogger logger,
                                   SignatureScannerClient signatureScannerClient,
                                   com.synopsys.integration.util.CleanupZipExpander cleanupZipExpander,
                                   ScanPathsUtility scanPathsUtility,
                                   KeyStoreHelper keyStoreHelper,
                                   com.synopsys.integration.rest.HttpUrl blackDuckServerUrl,
                                   com.synopsys.integration.util.OperatingSystemType operatingSystemType)
    • Method Detail

      • installOrUpdateScanner

        public void installOrUpdateScanner​(java.io.File installDirectory)
                                    throws BlackDuckIntegrationException
        The Black Duck Signature Scanner will be download if it has not previously been downloaded or if it has been updated on the server. The absolute path to the install location will be returned if it was downloaded or found successfully, otherwise an Optional.empty will be returned and the log will contain details concerning the failure.
        Throws:
        BlackDuckIntegrationException