Package org.eclipse.aether.spi.checksums
Interface TrustedChecksumsSource.Writer
- Enclosing interface:
TrustedChecksumsSource
public static interface TrustedChecksumsSource.Writer
A writer that is able to write/add trusted checksums to this implementation.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddTrustedArtifactChecksums(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.default voidaddTrustedMetadataChecksums(Metadata metadata, ArtifactRepository artifactRepository, List<ChecksumAlgorithmFactory> checksumAlgorithmFactories, Map<String, String> trustedMetadataChecksums) Performs whatever implementation requires to "set" (write/add/append) given map of trusted checksums, for given metadata.
-
Method Details
-
addTrustedArtifactChecksums
void addTrustedArtifactChecksums(Artifact artifact, ArtifactRepository artifactRepository, List<ChecksumAlgorithmFactory> checksumAlgorithmFactories, Map<String, String> trustedArtifactChecksums) throws IOExceptionPerforms 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.- Throws:
IOException
-
addTrustedMetadataChecksums
default void addTrustedMetadataChecksums(Metadata metadata, ArtifactRepository artifactRepository, List<ChecksumAlgorithmFactory> checksumAlgorithmFactories, Map<String, String> trustedMetadataChecksums) throws IOExceptionPerforms whatever implementation requires to "set" (write/add/append) given map of trusted checksums, for given metadata. Semantics are the same as foraddTrustedArtifactChecksums(Artifact, ArtifactRepository, List, Map), but covering metadata.The default implementation records nothing, preserving the behavior of implementations written before this method existed.
- Throws:
IOException- Since:
- 2.0.23
-