Class SummaryFileTrustedChecksumsSource.SummaryFileWriter
java.lang.Object
org.eclipse.aether.internal.impl.checksum.SummaryFileTrustedChecksumsSource.SummaryFileWriter
- All Implemented Interfaces:
TrustedChecksumsSource.Writer
- Enclosing class:
SummaryFileTrustedChecksumsSource
private class SummaryFileTrustedChecksumsSource.SummaryFileWriter
extends Object
implements TrustedChecksumsSource.Writer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Path
private final ConcurrentHashMap
<Path, ConcurrentHashMap<String, String>> private final boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SummaryFileWriter
(ConcurrentHashMap<Path, ConcurrentHashMap<String, String>> cache, Path basedir, boolean originAware) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTrustedArtifactChecksums
(Artifact artifact, ArtifactRepository artifactRepository, List<ChecksumAlgorithmFactory> checksumAlgorithmFactories, Map<String, String> trustedArtifactChecksums) Performs whatever implementation requires to "set" (write/add/append) given map of trusted checksums.
-
Field Details
-
cache
-
basedir
-
originAware
private final boolean originAware
-
-
Constructor Details
-
SummaryFileWriter
private SummaryFileWriter(ConcurrentHashMap<Path, ConcurrentHashMap<String, String>> cache, Path basedir, boolean originAware)
-
-
Method Details
-
addTrustedArtifactChecksums
public void addTrustedArtifactChecksums(Artifact artifact, ArtifactRepository artifactRepository, List<ChecksumAlgorithmFactory> checksumAlgorithmFactories, Map<String, 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 interfaceTrustedChecksumsSource.Writer
-