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 Type
    Method
    Description
    void
    addTrustedArtifactChecksums(org.eclipse.aether.artifact.Artifact artifact, org.eclipse.aether.repository.ArtifactRepository artifactRepository, List<ChecksumAlgorithmFactory> checksumAlgorithmFactories, Map<String,String> trustedArtifactChecksums)
    Performs whatever implementation requires to "set" (write/add/append) given map of trusted checksums.
    default void
    addTrustedMetadataChecksums(org.eclipse.aether.metadata.Metadata metadata, org.eclipse.aether.repository.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(org.eclipse.aether.artifact.Artifact artifact, org.eclipse.aether.repository.ArtifactRepository artifactRepository, List<ChecksumAlgorithmFactory> checksumAlgorithmFactories, Map<String,String> trustedArtifactChecksums) throws 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:
      IOException
    • addTrustedMetadataChecksums

      default void addTrustedMetadataChecksums(org.eclipse.aether.metadata.Metadata metadata, org.eclipse.aether.repository.ArtifactRepository artifactRepository, List<ChecksumAlgorithmFactory> checksumAlgorithmFactories, Map<String,String> trustedMetadataChecksums) throws IOException
      Performs whatever implementation requires to "set" (write/add/append) given map of trusted checksums, for given metadata. Semantics are the same as for addTrustedArtifactChecksums(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