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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddTrustedArtifactChecksums(org.eclipse.aether.artifact.Artifact artifact, org.eclipse.aether.repository.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.default voidaddTrustedMetadataChecksums(org.eclipse.aether.metadata.Metadata metadata, org.eclipse.aether.repository.ArtifactRepository artifactRepository, java.util.List<ChecksumAlgorithmFactory> checksumAlgorithmFactories, java.util.Map<java.lang.String,java.lang.String> trustedMetadataChecksums)Performs whatever implementation requires to "set" (write/add/append) given map of trusted checksums, for given metadata.
-
-
-
Method Detail
-
addTrustedArtifactChecksums
void addTrustedArtifactChecksums(org.eclipse.aether.artifact.Artifact artifact, org.eclipse.aether.repository.ArtifactRepository artifactRepository, java.util.List<ChecksumAlgorithmFactory> checksumAlgorithmFactories, java.util.Map<java.lang.String,java.lang.String> trustedArtifactChecksums) throws java.io.IOException
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.- Throws:
java.io.IOException
-
addTrustedMetadataChecksums
default void addTrustedMetadataChecksums(org.eclipse.aether.metadata.Metadata metadata, org.eclipse.aether.repository.ArtifactRepository artifactRepository, java.util.List<ChecksumAlgorithmFactory> checksumAlgorithmFactories, java.util.Map<java.lang.String,java.lang.String> trustedMetadataChecksums) throws java.io.IOException
Performs 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:
java.io.IOException- Since:
- 2.0.23
-
-