Interface ProvidedChecksumsSource

All Known Implementing Classes:

public interface ProvidedChecksumsSource
Component able to provide (expected) checksums to connector beforehand the download happens. Checksum provided by this component are of kind ChecksumPolicy.ChecksumKind.PROVIDED.
  • Method Details

    • getProvidedArtifactChecksums

      May return the provided checksums (for given artifact transfer) from source other than remote repository, or null if it have no checksums available for given transfer. Provided checksums are "opt-in" for transfer, in a way IF they are available upfront, they will be enforced according to checksum policy in effect. Otherwise, provided checksum verification is completely left out.

      For enabled provided checksum source is completely acceptable to return null values, as that carries the meaning "nothing to add here", as there are no checksums to be provided upfront transfer. Semantically, this is equivalent to returning empty map, but signals the intent better.

      transfer - The transfer that is about to be executed.
      checksumAlgorithmFactories - The checksum algorithms that are expected.
      Map of expected checksums, or null.