Class SummaryFileTrustedChecksumsSource.SummaryFileWriter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.nio.file.Path basedir  
      private java.util.concurrent.ConcurrentHashMap<java.nio.file.Path,​java.util.concurrent.ConcurrentHashMap<java.lang.String,​java.lang.String>> cache  
      private boolean originAware  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private SummaryFileWriter​(java.util.concurrent.ConcurrentHashMap<java.nio.file.Path,​java.util.concurrent.ConcurrentHashMap<java.lang.String,​java.lang.String>> cache, java.nio.file.Path basedir, boolean originAware)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addTrustedArtifactChecksums​(Artifact artifact, ArtifactRepository artifactRepository, java.util.List<ChecksumAlgorithmFactory> checksumAlgorithmFactories, java.util.Map<java.lang.String,​java.lang.String> trustedArtifactChecksums)
      Performs whatever implementation requires to "set" (write/add/append) given map of trusted checksums.
      • Methods inherited from class java.lang.Object

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

      • cache

        private final java.util.concurrent.ConcurrentHashMap<java.nio.file.Path,​java.util.concurrent.ConcurrentHashMap<java.lang.String,​java.lang.String>> cache
      • basedir

        private final java.nio.file.Path basedir
      • originAware

        private final boolean originAware
    • Constructor Detail

      • SummaryFileWriter

        private SummaryFileWriter​(java.util.concurrent.ConcurrentHashMap<java.nio.file.Path,​java.util.concurrent.ConcurrentHashMap<java.lang.String,​java.lang.String>> cache,
                                  java.nio.file.Path basedir,
                                  boolean originAware)
    • Method Detail

      • addTrustedArtifactChecksums

        public void addTrustedArtifactChecksums​(Artifact artifact,
                                                ArtifactRepository artifactRepository,
                                                java.util.List<ChecksumAlgorithmFactory> checksumAlgorithmFactories,
                                                java.util.Map<java.lang.String,​java.lang.String> trustedArtifactChecksums)
        Description copied from interface: TrustedChecksumsSource.Writer
        Performs whatever implementation requires to "set" (write/add/append) given map of trusted checksums. The passed in list of checksum algorithm factories and the map must have equal size and mapping must contain all algorithm names in list.
        Specified by:
        addTrustedArtifactChecksums in interface TrustedChecksumsSource.Writer