Class TrustedToProvidedChecksumsSourceAdapter
java.lang.Object
org.eclipse.aether.internal.impl.checksum.TrustedToProvidedChecksumsSourceAdapter
- All Implemented Interfaces:
org.eclipse.aether.spi.checksums.ProvidedChecksumsSource
@Singleton
@Named("trusted2provided")
public final class TrustedToProvidedChecksumsSourceAdapter
extends Object
implements org.eclipse.aether.spi.checksums.ProvidedChecksumsSource
Adapter that adapts
TrustedChecksumsSource
to ProvidedChecksumsSource
used by connector. Hence, any
"trusted" source exist that is enabled, automatically becomes "provided" source as well.- Since:
- 1.9.0
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTrustedToProvidedChecksumsSourceAdapter
(Map<String, org.eclipse.aether.spi.checksums.TrustedChecksumsSource> trustedChecksumsSources) -
Method Summary
Modifier and TypeMethodDescriptiongetProvidedArtifactChecksums
(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.spi.connector.ArtifactDownload transfer, org.eclipse.aether.repository.RemoteRepository repository, List<org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactory> checksumAlgorithmFactories)
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
TrustedToProvidedChecksumsSourceAdapter
@Inject public TrustedToProvidedChecksumsSourceAdapter(Map<String, org.eclipse.aether.spi.checksums.TrustedChecksumsSource> trustedChecksumsSources)
-
-
Method Details
-
getProvidedArtifactChecksums
public Map<String,String> getProvidedArtifactChecksums(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.spi.connector.ArtifactDownload transfer, org.eclipse.aether.repository.RemoteRepository repository, List<org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactory> checksumAlgorithmFactories) - Specified by:
getProvidedArtifactChecksums
in interfaceorg.eclipse.aether.spi.checksums.ProvidedChecksumsSource
-