Class NodeDistributionValidator


  • public class NodeDistributionValidator
    extends java.lang.Object
    Validates a Node distribution by comparing its SHA-256 hash against the one officially published.
    • Constructor Summary

      Constructors 
      Constructor Description
      NodeDistributionValidator​(org.gradle.api.Task task, org.gradle.api.logging.LogLevel loggingLevel, org.siouan.frontendgradleplugin.core.Downloader downloader, org.siouan.frontendgradleplugin.core.NodeDistributionChecksumReader checksumReader, org.siouan.frontendgradleplugin.core.FileHasher fileHasher, java.nio.file.Path installDirectory)
      Builds a validator of a Node distribution.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void validate​(java.net.URL distributionUrl, java.nio.file.Path distributionFile)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NodeDistributionValidator

        public NodeDistributionValidator​(org.gradle.api.Task task,
                                         org.gradle.api.logging.LogLevel loggingLevel,
                                         org.siouan.frontendgradleplugin.core.Downloader downloader,
                                         org.siouan.frontendgradleplugin.core.NodeDistributionChecksumReader checksumReader,
                                         org.siouan.frontendgradleplugin.core.FileHasher fileHasher,
                                         java.nio.file.Path installDirectory)
        Builds a validator of a Node distribution.
        Parameters:
        task - Refering task.
        loggingLevel - Default logging level.
        downloader - Downloader.
        checksumReader - Reader of checksum's file.
        fileHasher - Hasher.
        installDirectory - Install directory.